rental
22 rows where customer_id = 554
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 |
|---|---|---|---|---|---|---|
| 607 | 2005-05-28 15:02:41.000 | 2561 2561 | 554 554 | 2005-05-30 12:54:41.000 | 2 2 | 2020-12-23 07:15:28 |
| 817 | 2005-05-29 20:39:14.000 | 186 186 | 554 554 | 2005-05-31 18:24:14.000 | 1 1 | 2020-12-23 07:15:30 |
| 1959 | 2005-06-17 08:54:10.000 | 1464 1464 | 554 554 | 2005-06-20 05:02:10.000 | 2 2 | 2020-12-23 07:15:46 |
| 2279 | 2005-06-18 06:38:22.000 | 1953 1953 | 554 554 | 2005-06-27 07:16:22.000 | 1 1 | 2020-12-23 07:15:51 |
| 3278 | 2005-06-21 05:41:30.000 | 2832 2832 | 554 554 | 2005-06-22 03:43:30.000 | 1 1 | 2020-12-23 07:16:05 |
| 3312 | 2005-06-21 08:05:32.000 | 1008 1008 | 554 554 | 2005-06-27 03:34:32.000 | 2 2 | 2020-12-23 07:16:05 |
| 4902 | 2005-07-08 20:49:30.000 | 2238 2238 | 554 554 | 2005-07-13 16:54:30.000 | 2 2 | 2020-12-23 07:16:29 |
| 5527 | 2005-07-10 02:06:01.000 | 4462 4462 | 554 554 | 2005-07-15 00:55:01.000 | 2 2 | 2020-12-23 07:16:38 |
| 5968 | 2005-07-11 00:03:11.000 | 3273 3273 | 554 554 | 2005-07-19 18:46:11.000 | 1 1 | 2020-12-23 07:16:45 |
| 6144 | 2005-07-11 09:02:53.000 | 1077 1077 | 554 554 | 2005-07-15 10:58:53.000 | 2 2 | 2020-12-23 07:16:47 |
| 10612 | 2005-08-01 14:55:31.000 | 287 287 | 554 554 | 2005-08-06 19:01:31.000 | 1 1 | 2020-12-23 07:17:52 |
| 10829 | 2005-08-01 23:17:06.000 | 168 168 | 554 554 | 2005-08-09 17:22:06.000 | 2 2 | 2020-12-23 07:17:55 |
| 11589 | 2005-08-17 02:28:22.000 | 3480 3480 | 554 554 | 2005-08-25 00:08:22.000 | 1 1 | 2020-12-23 07:18:06 |
| 11873 | 2005-08-17 14:14:39.000 | 4021 4021 | 554 554 | 2005-08-18 17:20:39.000 | 2 2 | 2020-12-23 07:18:10 |
| 12010 | 2005-08-17 19:17:54.000 | 1076 1076 | 554 554 | 2005-08-26 00:41:54.000 | 1 1 | 2020-12-23 07:18:11 |
| 12014 | 2005-08-17 19:29:44.000 | 1778 1778 | 554 554 | 2005-08-23 20:40:44.000 | 1 1 | 2020-12-23 07:18:11 |
| 13139 | 2005-08-19 12:32:10.000 | 2099 2099 | 554 554 | 2005-08-24 12:12:10.000 | 1 1 | 2020-12-23 07:18:27 |
| 14015 | 2005-08-20 20:47:43.000 | 3145 3145 | 554 554 | 2005-08-26 19:37:43.000 | 1 1 | 2020-12-23 07:18:41 |
| 14098 | 2005-08-21 00:30:32.000 | 6 6 | 554 554 | 2 2 | 2020-12-23 07:18:42 | |
| 14469 | 2005-08-21 13:07:24.000 | 1957 1957 | 554 554 | 2005-08-24 10:37:24.000 | 1 1 | 2020-12-23 07:18:47 |
| 14626 | 2005-08-21 18:35:44.000 | 1038 1038 | 554 554 | 2005-08-25 23:54:44.000 | 2 2 | 2020-12-23 07:18:49 |
| 15690 | 2005-08-23 09:53:30.000 | 2102 2102 | 554 554 | 2005-08-29 10:27:30.000 | 1 1 | 2020-12-23 07:19:05 |
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) ;