rental
21 rows where customer_id = 401
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 |
|---|---|---|---|---|---|---|
| 167 | 2005-05-26 02:50:31.000 | 865 865 | 401 401 | 2005-05-27 03:07:31.000 | 1 1 | 2020-12-23 07:15:22 |
| 446 | 2005-05-27 18:48:41.000 | 1955 1955 | 401 401 | 2005-06-03 16:42:41.000 | 2 2 | 2020-12-23 07:15:25 |
| 811 | 2005-05-29 19:30:42.000 | 4419 4419 | 401 401 | 2005-06-02 16:19:42.000 | 2 2 | 2020-12-23 07:15:30 |
| 4059 | 2005-07-07 04:04:26.000 | 292 292 | 401 401 | 2005-07-10 22:35:26.000 | 1 1 | 2020-12-23 07:16:16 |
| 4292 | 2005-07-07 15:48:38.000 | 3084 3084 | 401 401 | 2005-07-15 17:53:38.000 | 1 1 | 2020-12-23 07:16:20 |
| 5923 | 2005-07-10 21:40:06.000 | 1817 1817 | 401 401 | 2005-07-13 00:01:06.000 | 1 1 | 2020-12-23 07:16:44 |
| 7651 | 2005-07-28 01:48:32.000 | 2753 2753 | 401 401 | 2005-08-03 03:10:32.000 | 2 2 | 2020-12-23 07:17:09 |
| 8450 | 2005-07-29 07:44:05.000 | 484 484 | 401 401 | 2005-08-01 12:23:05.000 | 1 1 | 2020-12-23 07:17:21 |
| 8669 | 2005-07-29 15:44:55.000 | 1667 1667 | 401 401 | 2005-08-01 14:09:55.000 | 2 2 | 2020-12-23 07:17:24 |
| 8722 | 2005-07-29 17:58:58.000 | 1389 1389 | 401 401 | 2005-08-07 23:40:58.000 | 1 1 | 2020-12-23 07:17:25 |
| 9701 | 2005-07-31 07:32:21.000 | 4581 4581 | 401 401 | 2005-08-01 05:07:21.000 | 2 2 | 2020-12-23 07:17:39 |
| 10171 | 2005-07-31 23:29:05.000 | 1367 1367 | 401 401 | 2005-08-03 19:39:05.000 | 1 1 | 2020-12-23 07:17:46 |
| 11820 | 2005-08-17 12:25:33.000 | 2801 2801 | 401 401 | 2005-08-19 07:04:33.000 | 2 2 | 2020-12-23 07:18:09 |
| 12475 | 2005-08-18 12:14:21.000 | 3118 3118 | 401 401 | 2005-08-24 14:43:21.000 | 2 2 | 2020-12-23 07:18:18 |
| 12479 | 2005-08-18 12:26:37.000 | 1119 1119 | 401 401 | 2005-08-21 18:08:37.000 | 2 2 | 2020-12-23 07:18:18 |
| 12906 | 2005-08-19 04:13:43.000 | 2060 2060 | 401 401 | 2005-08-20 04:24:43.000 | 1 1 | 2020-12-23 07:18:24 |
| 13024 | 2005-08-19 08:19:21.000 | 2917 2917 | 401 401 | 2005-08-27 05:18:21.000 | 1 1 | 2020-12-23 07:18:26 |
| 14359 | 2005-08-21 09:16:19.000 | 1841 1841 | 401 401 | 2005-08-22 09:28:19.000 | 1 1 | 2020-12-23 07:18:46 |
| 14433 | 2005-08-21 11:36:34.000 | 732 732 | 401 401 | 2005-08-26 08:51:34.000 | 1 1 | 2020-12-23 07:18:47 |
| 15831 | 2005-08-23 15:21:19.000 | 3123 3123 | 401 401 | 2005-08-24 15:47:19.000 | 2 2 | 2020-12-23 07:19:07 |
| 15927 | 2005-08-23 18:23:11.000 | 2450 2450 | 401 401 | 2005-08-24 15:09:11.000 | 1 1 | 2020-12-23 07:19:08 |
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) ;