rental
22 rows where customer_id = 514
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 |
|---|---|---|---|---|---|---|
| 536 | 2005-05-28 06:17:33.000 | 2962 2962 | 514 514 | 2005-06-03 10:02:33.000 | 2 2 | 2020-12-23 07:15:27 |
| 1692 | 2005-06-16 12:30:19.000 | 3544 3544 | 514 514 | 2005-06-17 17:31:19.000 | 2 2 | 2020-12-23 07:15:42 |
| 2002 | 2005-06-17 11:39:58.000 | 2406 2406 | 514 514 | 2005-06-24 15:41:58.000 | 2 2 | 2020-12-23 07:15:47 |
| 2362 | 2005-06-18 13:31:15.000 | 2815 2815 | 514 514 | 2005-06-19 12:35:15.000 | 1 1 | 2020-12-23 07:15:52 |
| 2789 | 2005-06-19 18:48:21.000 | 2398 2398 | 514 514 | 2005-06-21 21:50:21.000 | 1 1 | 2020-12-23 07:15:58 |
| 3084 | 2005-06-20 15:35:24.000 | 3578 3578 | 514 514 | 2005-06-23 19:11:24.000 | 1 1 | 2020-12-23 07:16:02 |
| 3385 | 2005-06-21 14:16:48.000 | 2810 2810 | 514 514 | 2005-06-24 10:32:48.000 | 2 2 | 2020-12-23 07:16:06 |
| 3668 | 2005-07-06 08:36:48.000 | 269 269 | 514 514 | 2005-07-10 11:31:48.000 | 1 1 | 2020-12-23 07:16:10 |
| 3860 | 2005-07-06 17:20:24.000 | 144 144 | 514 514 | 2005-07-09 22:33:24.000 | 1 1 | 2020-12-23 07:16:13 |
| 7791 | 2005-07-28 07:22:51.000 | 822 822 | 514 514 | 2005-07-30 03:09:51.000 | 1 1 | 2020-12-23 07:17:11 |
| 9038 | 2005-07-30 06:23:35.000 | 217 217 | 514 514 | 2005-08-06 11:10:35.000 | 1 1 | 2020-12-23 07:17:30 |
| 11675 | 2005-08-17 05:57:54.000 | 1322 1322 | 514 514 | 2005-08-21 23:57:54.000 | 1 1 | 2020-12-23 07:18:07 |
| 12067 | 2005-08-17 21:36:47.000 | 2013 2013 | 514 514 | 2005-08-22 01:10:47.000 | 2 2 | 2020-12-23 07:18:12 |
| 12293 | 2005-08-18 05:13:36.000 | 614 614 | 514 514 | 2005-08-25 04:00:36.000 | 2 2 | 2020-12-23 07:18:15 |
| 12302 | 2005-08-18 05:41:39.000 | 765 765 | 514 514 | 2005-08-22 06:02:39.000 | 1 1 | 2020-12-23 07:18:15 |
| 12578 | 2005-08-18 15:47:11.000 | 930 930 | 514 514 | 2005-08-21 10:55:11.000 | 1 1 | 2020-12-23 07:18:19 |
| 12752 | 2005-08-18 22:33:36.000 | 3595 3595 | 514 514 | 2005-08-27 23:55:36.000 | 1 1 | 2020-12-23 07:18:21 |
| 13344 | 2005-08-19 20:22:44.000 | 4392 4392 | 514 514 | 2005-08-25 18:39:44.000 | 1 1 | 2020-12-23 07:18:30 |
| 14052 | 2005-08-20 22:11:46.000 | 3893 3893 | 514 514 | 2005-08-22 20:26:46.000 | 2 2 | 2020-12-23 07:18:41 |
| 14386 | 2005-08-21 10:06:34.000 | 3402 3402 | 514 514 | 2005-08-25 14:19:34.000 | 1 1 | 2020-12-23 07:18:46 |
| 15451 | 2005-08-23 00:56:27.000 | 231 231 | 514 514 | 2005-08-24 00:15:27.000 | 2 2 | 2020-12-23 07:19:01 |
| 15776 | 2005-08-23 13:26:01.000 | 43 43 | 514 514 | 2005-08-29 18:17:01.000 | 1 1 | 2020-12-23 07:19:06 |
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) ;