rental
19 rows where customer_id = 524
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 |
|---|---|---|---|---|---|---|
| 118 | 2005-05-25 19:31:18.000 | 872 872 | 524 524 | 2005-05-31 15:00:18.000 | 1 1 | 2020-12-23 07:15:21 |
| 982 | 2005-05-30 22:15:24.000 | 3560 3560 | 524 524 | 2005-06-02 16:18:24.000 | 1 1 | 2020-12-23 07:15:33 |
| 1306 | 2005-06-15 09:59:24.000 | 2132 2132 | 524 524 | 2005-06-19 09:37:24.000 | 2 2 | 2020-12-23 07:15:37 |
| 1651 | 2005-06-16 09:24:38.000 | 4444 4444 | 524 524 | 2005-06-17 09:50:38.000 | 2 2 | 2020-12-23 07:15:41 |
| 3454 | 2005-06-21 21:12:13.000 | 3009 3009 | 524 524 | 2005-06-25 23:23:13.000 | 1 1 | 2020-12-23 07:16:07 |
| 4366 | 2005-07-07 19:48:36.000 | 2961 2961 | 524 524 | 2005-07-14 01:14:36.000 | 1 1 | 2020-12-23 07:16:21 |
| 5037 | 2005-07-09 02:59:10.000 | 435 435 | 524 524 | 2005-07-15 07:54:10.000 | 2 2 | 2020-12-23 07:16:31 |
| 6161 | 2005-07-11 10:11:54.000 | 3681 3681 | 524 524 | 2005-07-15 12:12:54.000 | 2 2 | 2020-12-23 07:16:47 |
| 6240 | 2005-07-11 14:32:41.000 | 640 640 | 524 524 | 2005-07-20 18:38:41.000 | 1 1 | 2020-12-23 07:16:48 |
| 6745 | 2005-07-12 14:30:51.000 | 1331 1331 | 524 524 | 2005-07-13 13:42:51.000 | 2 2 | 2020-12-23 07:16:56 |
| 7014 | 2005-07-27 02:14:40.000 | 714 714 | 524 524 | 2005-08-03 00:32:40.000 | 2 2 | 2020-12-23 07:17:00 |
| 7040 | 2005-07-27 03:17:19.000 | 470 470 | 524 524 | 2005-07-29 07:03:19.000 | 2 2 | 2020-12-23 07:17:00 |
| 8507 | 2005-07-29 09:29:44.000 | 3273 3273 | 524 524 | 2005-08-07 05:48:44.000 | 2 2 | 2020-12-23 07:17:22 |
| 13626 | 2005-08-20 06:55:24.000 | 594 594 | 524 524 | 2005-08-29 12:32:24.000 | 1 1 | 2020-12-23 07:18:35 |
| 14046 | 2005-08-20 21:53:21.000 | 2352 2352 | 524 524 | 2005-08-23 17:51:21.000 | 2 2 | 2020-12-23 07:18:41 |
| 14178 | 2005-08-21 03:13:45.000 | 2178 2178 | 524 524 | 2005-08-22 01:50:45.000 | 1 1 | 2020-12-23 07:18:43 |
| 14366 | 2005-08-21 09:31:39.000 | 4011 4011 | 524 524 | 2005-08-26 11:55:39.000 | 2 2 | 2020-12-23 07:18:46 |
| 14680 | 2005-08-21 20:19:52.000 | 4469 4469 | 524 524 | 2005-08-28 17:10:52.000 | 1 1 | 2020-12-23 07:18:50 |
| 15206 | 2005-08-22 16:33:39.000 | 3901 3901 | 524 524 | 2005-08-31 11:41:39.000 | 1 1 | 2020-12-23 07:18:58 |
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) ;