rental
29 rows where customer_id = 481
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 |
|---|---|---|---|---|---|---|
| 1109 | 2005-05-31 15:12:15.000 | 2031 2031 | 481 481 | 2005-06-09 16:21:15.000 | 1 1 | 2020-12-23 07:15:34 |
| 1168 | 2005-06-14 23:35:09.000 | 4368 4368 | 481 481 | 2005-06-19 03:20:09.000 | 1 1 | 2020-12-23 07:15:35 |
| 2296 | 2005-06-18 08:10:42.000 | 4558 4558 | 481 481 | 2005-06-20 12:26:42.000 | 2 2 | 2020-12-23 07:15:51 |
| 3285 | 2005-06-21 06:30:13.000 | 948 948 | 481 481 | 2005-06-23 10:31:13.000 | 2 2 | 2020-12-23 07:16:05 |
| 3293 | 2005-06-21 06:59:33.000 | 4407 4407 | 481 481 | 2005-06-25 06:54:33.000 | 2 2 | 2020-12-23 07:16:05 |
| 3863 | 2005-07-06 17:40:18.000 | 363 363 | 481 481 | 2005-07-07 17:58:18.000 | 2 2 | 2020-12-23 07:16:13 |
| 4473 | 2005-07-08 00:22:10.000 | 1387 1387 | 481 481 | 2005-07-09 21:11:10.000 | 1 1 | 2020-12-23 07:16:23 |
| 4505 | 2005-07-08 02:20:04.000 | 1864 1864 | 481 481 | 2005-07-14 20:28:04.000 | 2 2 | 2020-12-23 07:16:23 |
| 4532 | 2005-07-08 03:30:39.000 | 4012 4012 | 481 481 | 2005-07-11 21:49:39.000 | 1 1 | 2020-12-23 07:16:23 |
| 4668 | 2005-07-08 10:11:45.000 | 3971 3971 | 481 481 | 2005-07-17 13:01:45.000 | 2 2 | 2020-12-23 07:16:26 |
| 5711 | 2005-07-10 10:37:20.000 | 3988 3988 | 481 481 | 2005-07-13 11:20:20.000 | 1 1 | 2020-12-23 07:16:41 |
| 6044 | 2005-07-11 03:18:39.000 | 1270 1270 | 481 481 | 2005-07-13 06:58:39.000 | 2 2 | 2020-12-23 07:16:46 |
| 7228 | 2005-07-27 09:55:33.000 | 1693 1693 | 481 481 | 2005-07-29 04:33:33.000 | 2 2 | 2020-12-23 07:17:03 |
| 7836 | 2005-07-28 08:55:27.000 | 1770 1770 | 481 481 | 2005-08-05 09:35:27.000 | 1 1 | 2020-12-23 07:17:12 |
| 8243 | 2005-07-29 00:35:33.000 | 1873 1873 | 481 481 | 2005-08-04 06:02:33.000 | 2 2 | 2020-12-23 07:17:18 |
| 8271 | 2005-07-29 01:27:44.000 | 83 83 | 481 481 | 2005-08-07 05:01:44.000 | 2 2 | 2020-12-23 07:17:18 |
| 9481 | 2005-07-30 23:26:05.000 | 613 613 | 481 481 | 2005-08-04 17:46:05.000 | 1 1 | 2020-12-23 07:17:36 |
| 10018 | 2005-07-31 18:15:14.000 | 3708 3708 | 481 481 | 2005-08-05 14:44:14.000 | 2 2 | 2020-12-23 07:17:44 |
| 11207 | 2005-08-02 12:01:30.000 | 4470 4470 | 481 481 | 2005-08-05 07:56:30.000 | 1 1 | 2020-12-23 07:18:00 |
| 11387 | 2005-08-02 18:32:38.000 | 2491 2491 | 481 481 | 2005-08-07 19:08:38.000 | 2 2 | 2020-12-23 07:18:03 |
| 11752 | 2005-08-17 09:10:55.000 | 1833 1833 | 481 481 | 2005-08-18 06:22:55.000 | 1 1 | 2020-12-23 07:18:08 |
| 11885 | 2005-08-17 14:53:53.000 | 3931 3931 | 481 481 | 2005-08-22 10:59:53.000 | 1 1 | 2020-12-23 07:18:10 |
| 12160 | 2005-08-18 00:37:59.000 | 1328 1328 | 481 481 | 2005-08-19 20:51:59.000 | 1 1 | 2020-12-23 07:18:13 |
| 12981 | 2005-08-19 07:04:00.000 | 3925 3925 | 481 481 | 2005-08-21 09:17:00.000 | 1 1 | 2020-12-23 07:18:25 |
| 13497 | 2005-08-20 01:46:38.000 | 1296 1296 | 481 481 | 2005-08-26 05:37:38.000 | 2 2 | 2020-12-23 07:18:33 |
| 13878 | 2005-08-20 15:17:38.000 | 49 49 | 481 481 | 2005-08-21 21:11:38.000 | 2 2 | 2020-12-23 07:18:39 |
| 13990 | 2005-08-20 19:29:23.000 | 2272 2272 | 481 481 | 2005-08-25 18:50:23.000 | 2 2 | 2020-12-23 07:18:40 |
| 14280 | 2005-08-21 06:39:58.000 | 1561 1561 | 481 481 | 2005-08-23 04:50:58.000 | 1 1 | 2020-12-23 07:18:45 |
| 14584 | 2005-08-21 17:15:33.000 | 2617 2617 | 481 481 | 2005-08-24 20:24:33.000 | 2 2 | 2020-12-23 07:18:49 |
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) ;