rental
26 rows where customer_id = 587
This data as json, xlsx, CSV (advanced)
Suggested facets: staff_id, last_update, rental_date (date), return_date (date), last_update (date)
| rental_id ▼ | rental_date | inventory_id | customer_id | return_date | staff_id | last_update |
|---|---|---|---|---|---|---|
| 181 | 2005-05-26 04:47:06.000 | 2417 2417 | 587 587 | 2005-05-29 06:34:06.000 | 2 2 | 2020-12-23 07:15:22 |
| 361 | 2005-05-27 07:03:28.000 | 6 6 | 587 587 | 2005-05-31 08:01:28.000 | 1 1 | 2020-12-23 07:15:24 |
| 1330 | 2005-06-15 11:29:17.000 | 1219 1219 | 587 587 | 2005-06-24 13:36:17.000 | 2 2 | 2020-12-23 07:15:37 |
| 2034 | 2005-06-17 13:27:16.000 | 1512 1512 | 587 587 | 2005-06-22 08:53:16.000 | 2 2 | 2020-12-23 07:15:47 |
| 2220 | 2005-06-18 03:21:36.000 | 320 320 | 587 587 | 2005-06-21 07:45:36.000 | 2 2 | 2020-12-23 07:15:50 |
| 2329 | 2005-06-18 10:22:52.000 | 4156 4156 | 587 587 | 2005-06-20 12:03:52.000 | 2 2 | 2020-12-23 07:15:52 |
| 3562 | 2005-07-06 02:54:36.000 | 1660 1660 | 587 587 | 2005-07-11 05:48:36.000 | 1 1 | 2020-12-23 07:16:09 |
| 3969 | 2005-07-06 22:47:59.000 | 383 383 | 587 587 | 2005-07-08 02:11:59.000 | 1 1 | 2020-12-23 07:16:15 |
| 5243 | 2005-07-09 13:22:08.000 | 122 122 | 587 587 | 2005-07-16 09:25:08.000 | 1 1 | 2020-12-23 07:16:34 |
| 6639 | 2005-07-12 10:00:44.000 | 3385 3385 | 587 587 | 2005-07-19 04:56:44.000 | 1 1 | 2020-12-23 07:16:54 |
| 6665 | 2005-07-12 11:29:14.000 | 2912 2912 | 587 587 | 2005-07-19 11:26:14.000 | 2 2 | 2020-12-23 07:16:55 |
| 7501 | 2005-07-27 20:16:59.000 | 1464 1464 | 587 587 | 2005-08-04 00:11:59.000 | 2 2 | 2020-12-23 07:17:07 |
| 8776 | 2005-07-29 20:07:06.000 | 1565 1565 | 587 587 | 2005-08-06 20:42:06.000 | 2 2 | 2020-12-23 07:17:26 |
| 9720 | 2005-07-31 08:25:21.000 | 1282 1282 | 587 587 | 2005-08-07 11:30:21.000 | 2 2 | 2020-12-23 07:17:40 |
| 9785 | 2005-07-31 10:22:15.000 | 4101 4101 | 587 587 | 2005-08-02 10:02:15.000 | 1 1 | 2020-12-23 07:17:41 |
| 9909 | 2005-07-31 14:43:34.000 | 2600 2600 | 587 587 | 2005-08-09 15:31:34.000 | 1 1 | 2020-12-23 07:17:43 |
| 10224 | 2005-08-01 01:31:56.000 | 1443 1443 | 587 587 | 2005-08-05 21:21:56.000 | 2 2 | 2020-12-23 07:17:47 |
| 10825 | 2005-08-01 23:05:33.000 | 4386 4386 | 587 587 | 2005-08-04 04:33:33.000 | 1 1 | 2020-12-23 07:17:55 |
| 11078 | 2005-08-02 07:26:58.000 | 2362 2362 | 587 587 | 2005-08-07 01:59:58.000 | 2 2 | 2020-12-23 07:17:59 |
| 11403 | 2005-08-02 19:10:21.000 | 4072 4072 | 587 587 | 2005-08-04 00:44:21.000 | 2 2 | 2020-12-23 07:18:03 |
| 12144 | 2006-02-14 15:16:03.000 | 512 512 | 587 587 | 1 1 | 2020-12-23 07:18:13 | |
| 12164 | 2005-08-18 00:46:38.000 | 3849 3849 | 587 587 | 2005-08-19 04:38:38.000 | 2 2 | 2020-12-23 07:18:14 |
| 12330 | 2005-08-18 06:46:33.000 | 889 889 | 587 587 | 2005-08-26 11:35:33.000 | 2 2 | 2020-12-23 07:18:16 |
| 14710 | 2005-08-21 21:15:23.000 | 1922 1922 | 587 587 | 2005-08-30 19:45:23.000 | 1 1 | 2020-12-23 07:18:51 |
| 15348 | 2005-08-22 21:13:46.000 | 3846 3846 | 587 587 | 2005-08-24 17:06:46.000 | 1 1 | 2020-12-23 07:19:00 |
| 15349 | 2005-08-22 21:13:51.000 | 4055 4055 | 587 587 | 2005-08-23 20:55:51.000 | 1 1 | 2020-12-23 07:19:00 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE rental ( rental_id INT NOT NULL, rental_date TIMESTAMP NOT NULL, inventory_id INT NOT NULL, customer_id INT NOT NULL, return_date TIMESTAMP DEFAULT NULL, staff_id SMALLINT NOT NULL, last_update TIMESTAMP NOT NULL, PRIMARY KEY (rental_id), CONSTRAINT fk_rental_staff FOREIGN KEY (staff_id) REFERENCES staff (staff_id) , CONSTRAINT fk_rental_inventory FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id) , CONSTRAINT fk_rental_customer FOREIGN KEY (customer_id) REFERENCES customer (customer_id) ); CREATE INDEX idx_rental_fk_inventory_id ON rental(inventory_id) ; CREATE INDEX idx_rental_fk_customer_id ON rental(customer_id) ; CREATE INDEX idx_rental_fk_staff_id ON rental(staff_id) ; CREATE UNIQUE INDEX idx_rental_uq ON rental (rental_date,inventory_id,customer_id) ;