rental
22 rows where customer_id = 488
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 |
|---|---|---|---|---|---|---|
| 1655 | 2005-06-16 09:51:39.000 | 3693 3693 | 488 488 | 2005-06-23 14:53:39.000 | 2 2 | 2020-12-23 07:15:42 |
| 1704 | 2005-06-16 13:45:56.000 | 4425 4425 | 488 488 | 2005-06-24 18:12:56.000 | 1 1 | 2020-12-23 07:15:42 |
| 4133 | 2005-07-07 08:12:26.000 | 3672 3672 | 488 488 | 2005-07-16 03:43:26.000 | 1 1 | 2020-12-23 07:16:18 |
| 4233 | 2005-07-07 13:00:20.000 | 1849 1849 | 488 488 | 2005-07-13 16:37:20.000 | 1 1 | 2020-12-23 07:16:19 |
| 5141 | 2005-07-09 08:05:14.000 | 590 590 | 488 488 | 2005-07-18 04:36:14.000 | 1 1 | 2020-12-23 07:16:33 |
| 6548 | 2005-07-12 05:00:46.000 | 2480 2480 | 488 488 | 2005-07-19 04:40:46.000 | 2 2 | 2020-12-23 07:16:53 |
| 7373 | 2005-07-27 15:19:33.000 | 3074 3074 | 488 488 | 2005-08-04 10:45:33.000 | 1 1 | 2020-12-23 07:17:05 |
| 8005 | 2005-07-28 15:15:11.000 | 670 670 | 488 488 | 2005-07-29 14:54:11.000 | 1 1 | 2020-12-23 07:17:14 |
| 8050 | 2005-07-28 16:55:47.000 | 1864 1864 | 488 488 | 2005-08-02 13:20:47.000 | 1 1 | 2020-12-23 07:17:15 |
| 8064 | 2005-07-28 17:15:38.000 | 3788 3788 | 488 488 | 2005-08-04 18:04:38.000 | 2 2 | 2020-12-23 07:17:15 |
| 9083 | 2005-07-30 08:14:27.000 | 456 456 | 488 488 | 2005-08-07 14:02:27.000 | 1 1 | 2020-12-23 07:17:30 |
| 9532 | 2005-07-31 01:16:51.000 | 1309 1309 | 488 488 | 2005-08-01 20:23:51.000 | 1 1 | 2020-12-23 07:17:37 |
| 9537 | 2005-07-31 01:23:00.000 | 546 546 | 488 488 | 2005-08-01 01:16:00.000 | 2 2 | 2020-12-23 07:17:37 |
| 10474 | 2005-08-01 10:01:42.000 | 4482 4482 | 488 488 | 2005-08-08 12:32:42.000 | 1 1 | 2020-12-23 07:17:50 |
| 10767 | 2005-08-01 20:37:23.000 | 2875 2875 | 488 488 | 2005-08-04 23:15:23.000 | 2 2 | 2020-12-23 07:17:55 |
| 11774 | 2005-08-17 10:20:39.000 | 1679 1679 | 488 488 | 2005-08-23 13:37:39.000 | 1 1 | 2020-12-23 07:18:08 |
| 12483 | 2005-08-18 12:38:37.000 | 1805 1805 | 488 488 | 2005-08-24 13:26:37.000 | 1 1 | 2020-12-23 07:18:18 |
| 13446 | 2005-08-20 00:06:13.000 | 3226 3226 | 488 488 | 2005-08-22 19:56:13.000 | 1 1 | 2020-12-23 07:18:32 |
| 14948 | 2005-08-22 06:10:53.000 | 2914 2914 | 488 488 | 2005-08-28 11:24:53.000 | 2 2 | 2020-12-23 07:18:54 |
| 15259 | 2005-08-22 18:23:23.000 | 3261 3261 | 488 488 | 2005-08-27 13:06:23.000 | 1 1 | 2020-12-23 07:18:59 |
| 15350 | 2005-08-22 21:15:29.000 | 1170 1170 | 488 488 | 2005-08-24 02:56:29.000 | 1 1 | 2020-12-23 07:19:00 |
| 15499 | 2005-08-23 02:37:19.000 | 630 630 | 488 488 | 2005-08-23 20:57:19.000 | 1 1 | 2020-12-23 07:19:02 |
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) ;