rental
26 rows where customer_id = 450
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 |
|---|---|---|---|---|---|---|
| 548 | 2005-05-28 07:34:56.000 | 3704 3704 | 450 450 | 2005-06-05 03:14:56.000 | 2 2 | 2020-12-23 07:15:27 |
| 1639 | 2005-06-16 08:33:39.000 | 176 176 | 450 450 | 2005-06-25 07:51:39.000 | 1 1 | 2020-12-23 07:15:41 |
| 1739 | 2005-06-16 16:09:38.000 | 2557 2557 | 450 450 | 2005-06-22 18:04:38.000 | 2 2 | 2020-12-23 07:15:43 |
| 1914 | 2005-06-17 05:25:54.000 | 3406 3406 | 450 450 | 2005-06-24 04:25:54.000 | 2 2 | 2020-12-23 07:15:45 |
| 2278 | 2005-06-18 06:37:57.000 | 1166 1166 | 450 450 | 2005-06-22 10:57:57.000 | 1 1 | 2020-12-23 07:15:51 |
| 2501 | 2005-06-18 23:10:11.000 | 1185 1185 | 450 450 | 2005-06-24 18:40:11.000 | 2 2 | 2020-12-23 07:15:54 |
| 2626 | 2005-06-19 08:28:44.000 | 2816 2816 | 450 450 | 2005-06-24 03:58:44.000 | 1 1 | 2020-12-23 07:15:56 |
| 3155 | 2005-06-20 21:02:38.000 | 458 458 | 450 450 | 2005-06-27 19:34:38.000 | 1 1 | 2020-12-23 07:16:03 |
| 3570 | 2005-07-06 03:23:43.000 | 1300 1300 | 450 450 | 2005-07-14 07:28:43.000 | 2 2 | 2020-12-23 07:16:09 |
| 5999 | 2005-07-11 01:21:22.000 | 211 211 | 450 450 | 2005-07-19 01:35:22.000 | 1 1 | 2020-12-23 07:16:45 |
| 6028 | 2005-07-11 02:31:44.000 | 784 784 | 450 450 | 2005-07-14 03:18:44.000 | 1 1 | 2020-12-23 07:16:46 |
| 7365 | 2005-07-27 15:00:20.000 | 3283 3283 | 450 450 | 2005-07-30 12:58:20.000 | 1 1 | 2020-12-23 07:17:05 |
| 7610 | 2005-07-28 00:11:35.000 | 1279 1279 | 450 450 | 2005-07-31 00:33:35.000 | 1 1 | 2020-12-23 07:17:09 |
| 7626 | 2005-07-28 00:49:01.000 | 4200 4200 | 450 450 | 2005-07-31 00:43:01.000 | 1 1 | 2020-12-23 07:17:09 |
| 8733 | 2005-07-29 18:26:34.000 | 3187 3187 | 450 450 | 2005-08-03 15:06:34.000 | 1 1 | 2020-12-23 07:17:25 |
| 10432 | 2005-08-01 08:43:21.000 | 4238 4238 | 450 450 | 2005-08-08 13:09:21.000 | 2 2 | 2020-12-23 07:17:50 |
| 10984 | 2005-08-02 04:30:02.000 | 1813 1813 | 450 450 | 2005-08-10 02:51:02.000 | 1 1 | 2020-12-23 07:17:57 |
| 12812 | 2005-08-19 00:54:02.000 | 4024 4024 | 450 450 | 2005-08-22 20:35:02.000 | 2 2 | 2020-12-23 07:18:22 |
| 13731 | 2005-08-20 10:22:08.000 | 1133 1133 | 450 450 | 2005-08-21 12:04:08.000 | 2 2 | 2020-12-23 07:18:36 |
| 13810 | 2005-08-20 12:59:38.000 | 2228 2228 | 450 450 | 2005-08-21 17:40:38.000 | 1 1 | 2020-12-23 07:18:38 |
| 13828 | 2005-08-20 13:49:52.000 | 2391 2391 | 450 450 | 2005-08-25 07:49:52.000 | 2 2 | 2020-12-23 07:18:38 |
| 14172 | 2006-02-14 15:16:03.000 | 2158 2158 | 450 450 | 2 2 | 2020-12-23 07:18:43 | |
| 14282 | 2005-08-21 06:41:29.000 | 3107 3107 | 450 450 | 2005-08-22 12:37:29.000 | 1 1 | 2020-12-23 07:18:45 |
| 15019 | 2005-08-22 08:52:53.000 | 3425 3425 | 450 450 | 2005-08-25 13:07:53.000 | 2 2 | 2020-12-23 07:18:55 |
| 15327 | 2005-08-22 20:31:24.000 | 1018 1018 | 450 450 | 2005-08-30 23:52:24.000 | 1 1 | 2020-12-23 07:19:00 |
| 15419 | 2005-08-22 23:54:36.000 | 1120 1120 | 450 450 | 2005-08-25 00:52:36.000 | 1 1 | 2020-12-23 07:19:01 |
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) ;