rental
21 rows where customer_id = 17
This data as json, xlsx, CSV (advanced)
Suggested facets: staff_id, rental_date (date), return_date (date), last_update (date)
| rental_id ▼ | rental_date | inventory_id | customer_id | return_date | staff_id | last_update |
|---|---|---|---|---|---|---|
| 287 | 2005-05-26 19:44:54.000 | 3631 3631 | 17 17 | 2005-06-02 01:10:54.000 | 1 1 | 2020-12-23 07:15:23 |
| 580 | 2005-05-28 11:19:53.000 | 3515 3515 | 17 17 | 2005-06-01 10:44:53.000 | 2 2 | 2020-12-23 07:15:27 |
| 884 | 2005-05-30 06:41:32.000 | 4079 4079 | 17 17 | 2005-05-31 07:39:32.000 | 1 1 | 2020-12-23 07:15:32 |
| 2175 | 2005-06-18 00:17:58.000 | 4038 4038 | 17 17 | 2005-06-22 23:18:58.000 | 2 2 | 2020-12-23 07:15:49 |
| 2684 | 2005-06-19 12:29:08.000 | 1225 1225 | 17 17 | 2005-06-28 08:50:08.000 | 2 2 | 2020-12-23 07:15:56 |
| 3269 | 2005-06-21 05:06:30.000 | 3828 3828 | 17 17 | 2005-06-27 09:26:30.000 | 2 2 | 2020-12-23 07:16:04 |
| 5714 | 2005-07-10 10:46:57.000 | 3706 3706 | 17 17 | 2005-07-18 14:07:57.000 | 1 1 | 2020-12-23 07:16:41 |
| 5883 | 2005-07-10 19:25:21.000 | 2820 2820 | 17 17 | 2005-07-16 20:50:21.000 | 2 2 | 2020-12-23 07:16:44 |
| 6884 | 2005-07-12 20:52:41.000 | 3642 3642 | 17 17 | 2005-07-20 23:13:41.000 | 1 1 | 2020-12-23 07:16:58 |
| 8076 | 2005-07-28 17:45:58.000 | 214 214 | 17 17 | 2005-08-04 18:07:58.000 | 2 2 | 2020-12-23 07:17:15 |
| 8213 | 2005-07-28 23:37:33.000 | 3816 3816 | 17 17 | 2005-07-31 00:32:33.000 | 2 2 | 2020-12-23 07:17:18 |
| 9092 | 2005-07-30 08:30:56.000 | 1877 1877 | 17 17 | 2005-08-06 08:09:56.000 | 2 2 | 2020-12-23 07:17:30 |
| 9138 | 2005-07-30 10:11:52.000 | 2550 2550 | 17 17 | 2005-07-31 07:05:52.000 | 2 2 | 2020-12-23 07:17:31 |
| 9382 | 2005-07-30 19:23:44.000 | 2127 2127 | 17 17 | 2005-08-06 16:20:44.000 | 2 2 | 2020-12-23 07:17:35 |
| 9489 | 2005-07-30 23:43:32.000 | 4011 4011 | 17 17 | 2005-07-31 20:45:32.000 | 2 2 | 2020-12-23 07:17:36 |
| 11990 | 2005-08-17 18:26:22.000 | 3012 3012 | 17 17 | 2005-08-19 14:34:22.000 | 2 2 | 2020-12-23 07:18:11 |
| 13732 | 2005-08-20 10:24:41.000 | 1138 1138 | 17 17 | 2005-08-22 04:44:41.000 | 1 1 | 2020-12-23 07:18:36 |
| 14040 | 2005-08-20 21:43:44.000 | 905 905 | 17 17 | 2005-08-25 16:30:44.000 | 1 1 | 2020-12-23 07:18:41 |
| 14326 | 2005-08-21 08:15:41.000 | 1052 1052 | 17 17 | 2005-08-27 05:22:41.000 | 1 1 | 2020-12-23 07:18:45 |
| 14346 | 2005-08-21 08:42:26.000 | 109 109 | 17 17 | 2005-08-23 09:18:26.000 | 2 2 | 2020-12-23 07:18:46 |
| 15752 | 2005-08-23 12:41:38.000 | 2112 2112 | 17 17 | 2005-09-01 14:06:38.000 | 1 1 | 2020-12-23 07:19:06 |
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) ;