rental
24 rows where customer_id = 288
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 |
|---|---|---|---|---|---|---|
| 93 | 2005-05-25 15:54:16.000 | 4360 4360 | 288 288 | 2005-06-03 20:18:16.000 | 1 1 | 2020-12-23 07:15:21 |
| 427 | 2005-05-27 16:10:04.000 | 1677 1677 | 288 288 | 2005-06-05 13:22:04.000 | 2 2 | 2020-12-23 07:15:25 |
| 503 | 2005-05-28 01:35:25.000 | 3005 3005 | 288 288 | 2005-05-28 22:12:25.000 | 2 2 | 2020-12-23 07:15:26 |
| 565 | 2005-05-28 09:26:31.000 | 1494 1494 | 288 288 | 2005-06-01 07:28:31.000 | 1 1 | 2020-12-23 07:15:27 |
| 1466 | 2005-06-15 20:46:04.000 | 1057 1057 | 288 288 | 2005-06-24 22:46:04.000 | 1 1 | 2020-12-23 07:15:39 |
| 3958 | 2005-07-06 22:07:33.000 | 4117 4117 | 288 288 | 2005-07-10 19:31:33.000 | 2 2 | 2020-12-23 07:16:15 |
| 4692 | 2005-07-08 11:07:06.000 | 1490 1490 | 288 288 | 2005-07-09 14:08:06.000 | 1 1 | 2020-12-23 07:16:26 |
| 4758 | 2005-07-08 14:38:02.000 | 3698 3698 | 288 288 | 2005-07-13 12:09:02.000 | 2 2 | 2020-12-23 07:16:27 |
| 6399 | 2005-07-11 22:39:05.000 | 2031 2031 | 288 288 | 2005-07-16 01:12:05.000 | 1 1 | 2020-12-23 07:16:51 |
| 6518 | 2005-07-12 03:59:42.000 | 2698 2698 | 288 288 | 2005-07-19 22:21:42.000 | 2 2 | 2020-12-23 07:16:52 |
| 7744 | 2005-07-28 05:38:20.000 | 1863 1863 | 288 288 | 2005-07-31 11:00:20.000 | 1 1 | 2020-12-23 07:17:11 |
| 7855 | 2005-07-28 09:43:02.000 | 2474 2474 | 288 288 | 2005-07-30 12:57:02.000 | 2 2 | 2020-12-23 07:17:12 |
| 9429 | 2005-07-30 21:19:26.000 | 1769 1769 | 288 288 | 2005-08-07 18:39:26.000 | 1 1 | 2020-12-23 07:17:35 |
| 9732 | 2005-07-31 08:56:08.000 | 3262 3262 | 288 288 | 2005-08-07 11:05:08.000 | 2 2 | 2020-12-23 07:17:40 |
| 10927 | 2005-08-02 02:31:15.000 | 4125 4125 | 288 288 | 2005-08-10 20:41:15.000 | 1 1 | 2020-12-23 07:17:57 |
| 11952 | 2005-08-17 17:14:57.000 | 2411 2411 | 288 288 | 2005-08-19 19:15:57.000 | 1 1 | 2020-12-23 07:18:11 |
| 12134 | 2005-08-17 23:49:43.000 | 2682 2682 | 288 288 | 2005-08-21 21:00:43.000 | 1 1 | 2020-12-23 07:18:13 |
| 13219 | 2005-08-19 15:40:28.000 | 2075 2075 | 288 288 | 2005-08-22 21:20:28.000 | 2 2 | 2020-12-23 07:18:29 |
| 13227 | 2005-08-19 16:05:38.000 | 2759 2759 | 288 288 | 2005-08-20 21:39:38.000 | 1 1 | 2020-12-23 07:18:29 |
| 13363 | 2005-08-19 21:07:59.000 | 588 588 | 288 288 | 2005-08-21 17:08:59.000 | 1 1 | 2020-12-23 07:18:31 |
| 14113 | 2005-08-21 01:03:30.000 | 931 931 | 288 288 | 2005-08-23 06:46:30.000 | 2 2 | 2020-12-23 07:18:42 |
| 14756 | 2005-08-21 23:21:23.000 | 564 564 | 288 288 | 2005-08-24 01:44:23.000 | 1 1 | 2020-12-23 07:18:51 |
| 15058 | 2005-08-22 10:20:55.000 | 3537 3537 | 288 288 | 2005-08-26 12:37:55.000 | 1 1 | 2020-12-23 07:18:56 |
| 15119 | 2005-08-22 12:41:33.000 | 4526 4526 | 288 288 | 2005-08-23 14:44:33.000 | 2 2 | 2020-12-23 07:18:57 |
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) ;