rental
28 rows where customer_id = 317
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 |
|---|---|---|---|---|---|---|
| 107 | 2005-05-25 18:28:09.000 | 2833 2833 | 317 317 | 2005-06-03 22:46:09.000 | 2 2 | 2020-12-23 07:15:21 |
| 2287 | 2005-06-18 07:04:36.000 | 1473 1473 | 317 317 | 2005-06-27 03:00:36.000 | 2 2 | 2020-12-23 07:15:51 |
| 3029 | 2005-06-20 11:51:30.000 | 327 327 | 317 317 | 2005-06-25 16:42:30.000 | 1 1 | 2020-12-23 07:16:01 |
| 3251 | 2005-06-21 03:20:37.000 | 1414 1414 | 317 317 | 2005-06-23 04:54:37.000 | 2 2 | 2020-12-23 07:16:04 |
| 4138 | 2005-07-07 08:17:13.000 | 1588 1588 | 317 317 | 2005-07-14 05:18:13.000 | 2 2 | 2020-12-23 07:16:18 |
| 4177 | 2005-07-07 10:12:36.000 | 4106 4106 | 317 317 | 2005-07-15 15:48:36.000 | 2 2 | 2020-12-23 07:16:18 |
| 4700 | 2005-07-08 11:37:21.000 | 3889 3889 | 317 317 | 2005-07-12 15:41:21.000 | 1 1 | 2020-12-23 07:16:26 |
| 5548 | 2005-07-10 02:56:45.000 | 2973 2973 | 317 317 | 2005-07-13 01:33:45.000 | 2 2 | 2020-12-23 07:16:39 |
| 5942 | 2005-07-10 22:47:17.000 | 2861 2861 | 317 317 | 2005-07-17 01:54:17.000 | 2 2 | 2020-12-23 07:16:44 |
| 7309 | 2005-07-27 13:00:29.000 | 633 633 | 317 317 | 2005-07-29 12:15:29.000 | 2 2 | 2020-12-23 07:17:04 |
| 8062 | 2005-07-28 17:15:06.000 | 1384 1384 | 317 317 | 2005-07-30 16:56:06.000 | 2 2 | 2020-12-23 07:17:15 |
| 8327 | 2005-07-29 04:00:52.000 | 2928 2928 | 317 317 | 2005-07-31 08:27:52.000 | 1 1 | 2020-12-23 07:17:19 |
| 8458 | 2005-07-29 08:05:09.000 | 3857 3857 | 317 317 | 2005-08-02 03:42:09.000 | 1 1 | 2020-12-23 07:17:21 |
| 9110 | 2005-07-30 09:05:42.000 | 1474 1474 | 317 317 | 2005-08-03 05:15:42.000 | 1 1 | 2020-12-23 07:17:31 |
| 9513 | 2005-07-31 00:28:30.000 | 396 396 | 317 317 | 2005-08-01 00:22:30.000 | 2 2 | 2020-12-23 07:17:37 |
| 9770 | 2005-07-31 09:52:40.000 | 1226 1226 | 317 317 | 2005-08-09 06:44:40.000 | 1 1 | 2020-12-23 07:17:40 |
| 10364 | 2005-08-01 06:06:49.000 | 1842 1842 | 317 317 | 2005-08-09 06:05:49.000 | 2 2 | 2020-12-23 07:17:49 |
| 12111 | 2005-08-17 22:59:55.000 | 2905 2905 | 317 317 | 2005-08-22 19:33:55.000 | 2 2 | 2020-12-23 07:18:13 |
| 12138 | 2005-08-17 23:55:54.000 | 388 388 | 317 317 | 2005-08-26 23:32:54.000 | 1 1 | 2020-12-23 07:18:13 |
| 12301 | 2005-08-18 05:36:20.000 | 2293 2293 | 317 317 | 2005-08-23 03:15:20.000 | 1 1 | 2020-12-23 07:18:15 |
| 12574 | 2006-02-14 15:16:03.000 | 177 177 | 317 317 | 2 2 | 2020-12-23 07:18:19 | |
| 13388 | 2005-08-19 21:46:49.000 | 942 942 | 317 317 | 2005-08-27 16:18:49.000 | 1 1 | 2020-12-23 07:18:31 |
| 14032 | 2005-08-20 21:26:55.000 | 3542 3542 | 317 317 | 2005-08-26 19:19:55.000 | 1 1 | 2020-12-23 07:18:41 |
| 14385 | 2005-08-21 10:02:55.000 | 4356 4356 | 317 317 | 2005-08-25 07:19:55.000 | 2 2 | 2020-12-23 07:18:46 |
| 14669 | 2005-08-21 19:54:06.000 | 3154 3154 | 317 317 | 2005-08-25 23:12:06.000 | 1 1 | 2020-12-23 07:18:50 |
| 14791 | 2005-08-22 00:35:55.000 | 1490 1490 | 317 317 | 2005-08-30 20:23:55.000 | 1 1 | 2020-12-23 07:18:52 |
| 15204 | 2005-08-22 16:30:43.000 | 1471 1471 | 317 317 | 2005-08-26 20:37:43.000 | 2 2 | 2020-12-23 07:18:58 |
| 15280 | 2005-08-22 19:09:52.000 | 3464 3464 | 317 317 | 2005-08-28 00:39:52.000 | 1 1 | 2020-12-23 07:18:59 |
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) ;