rental
23 rows where customer_id = 9
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 |
|---|---|---|---|---|---|---|
| 350 | 2005-05-27 05:01:28.000 | 2756 2756 | 9 9 | 2005-06-04 05:01:28.000 | 2 2 | 2020-12-23 07:15:24 |
| 877 | 2005-05-30 05:48:59.000 | 886 886 | 9 9 | 2005-06-02 09:30:59.000 | 1 1 | 2020-12-23 07:15:31 |
| 1075 | 2005-05-31 10:13:34.000 | 2279 2279 | 9 9 | 2005-06-09 08:11:34.000 | 1 1 | 2020-12-23 07:15:34 |
| 3142 | 2005-06-20 19:59:28.000 | 3926 3926 | 9 9 | 2005-06-28 19:51:28.000 | 2 2 | 2020-12-23 07:16:03 |
| 3262 | 2005-06-21 04:08:43.000 | 3773 3773 | 9 9 | 2005-06-28 02:55:43.000 | 1 1 | 2020-12-23 07:16:04 |
| 4454 | 2005-07-07 23:37:00.000 | 1395 1395 | 9 9 | 2005-07-11 02:30:00.000 | 1 1 | 2020-12-23 07:16:22 |
| 4748 | 2005-07-08 13:59:38.000 | 4279 4279 | 9 9 | 2005-07-15 16:51:38.000 | 1 1 | 2020-12-23 07:16:27 |
| 4796 | 2005-07-08 16:35:44.000 | 2484 2484 | 9 9 | 2005-07-13 11:08:44.000 | 2 2 | 2020-12-23 07:16:27 |
| 5659 | 2005-07-10 07:45:40.000 | 4265 4265 | 9 9 | 2005-07-15 05:20:40.000 | 1 1 | 2020-12-23 07:16:40 |
| 6019 | 2005-07-11 02:08:29.000 | 3483 3483 | 9 9 | 2005-07-13 02:19:29.000 | 2 2 | 2020-12-23 07:16:45 |
| 6165 | 2005-07-11 10:17:29.000 | 3540 3540 | 9 9 | 2005-07-17 07:27:29.000 | 1 1 | 2020-12-23 07:16:47 |
| 7616 | 2005-07-28 00:15:26.000 | 3790 3790 | 9 9 | 2005-07-30 21:52:26.000 | 1 1 | 2020-12-23 07:17:09 |
| 7801 | 2005-07-28 07:51:56.000 | 2052 2052 | 9 9 | 2005-07-30 12:18:56.000 | 1 1 | 2020-12-23 07:17:12 |
| 9043 | 2005-07-30 06:34:07.000 | 4127 4127 | 9 9 | 2005-08-02 01:16:07.000 | 1 1 | 2020-12-23 07:17:30 |
| 10451 | 2005-08-01 09:11:25.000 | 2435 2435 | 9 9 | 2005-08-03 12:37:25.000 | 2 2 | 2020-12-23 07:17:50 |
| 10454 | 2005-08-01 09:14:00.000 | 397 397 | 9 9 | 2005-08-04 04:52:00.000 | 2 2 | 2020-12-23 07:17:50 |
| 11400 | 2005-08-02 19:00:52.000 | 3150 3150 | 9 9 | 2005-08-09 19:45:52.000 | 2 2 | 2020-12-23 07:18:03 |
| 11556 | 2005-08-17 01:11:53.000 | 373 373 | 9 9 | 2005-08-18 23:41:53.000 | 1 1 | 2020-12-23 07:18:05 |
| 12228 | 2005-08-18 03:08:10.000 | 2772 2772 | 9 9 | 2005-08-20 02:48:10.000 | 1 1 | 2020-12-23 07:18:14 |
| 12309 | 2005-08-18 05:58:40.000 | 762 762 | 9 9 | 2005-08-20 02:20:40.000 | 2 2 | 2020-12-23 07:18:15 |
| 12652 | 2005-08-18 18:48:58.000 | 2118 2118 | 9 9 | 2005-08-21 14:15:58.000 | 1 1 | 2020-12-23 07:18:20 |
| 14489 | 2005-08-21 13:53:59.000 | 2312 2312 | 9 9 | 2005-08-30 15:45:59.000 | 2 2 | 2020-12-23 07:18:48 |
| 15813 | 2006-02-14 15:16:03.000 | 981 981 | 9 9 | 1 1 | 2020-12-23 07:19:07 |
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) ;