rental
32 rows where customer_id = 167
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 |
|---|---|---|---|---|---|---|
| 280 | 2005-05-26 18:36:58.000 | 1896 1896 | 167 167 | 2005-05-27 23:42:58.000 | 1 1 | 2020-12-23 07:15:23 |
| 365 | 2005-05-27 07:31:20.000 | 2887 2887 | 167 167 | 2005-06-04 04:46:20.000 | 1 1 | 2020-12-23 07:15:24 |
| 927 | 2005-05-30 12:16:40.000 | 1158 1158 | 167 167 | 2005-05-31 16:20:40.000 | 2 2 | 2020-12-23 07:15:32 |
| 1416 | 2005-06-15 17:44:57.000 | 3816 3816 | 167 167 | 2005-06-22 20:53:57.000 | 2 2 | 2020-12-23 07:15:38 |
| 1509 | 2005-06-15 22:35:53.000 | 655 655 | 167 167 | 2005-06-23 17:09:53.000 | 2 2 | 2020-12-23 07:15:40 |
| 2381 | 2005-06-18 15:00:30.000 | 1491 1491 | 167 167 | 2005-06-22 11:38:30.000 | 1 1 | 2020-12-23 07:15:52 |
| 3518 | 2005-07-06 00:56:03.000 | 2502 2502 | 167 167 | 2005-07-14 02:27:03.000 | 1 1 | 2020-12-23 07:16:08 |
| 4493 | 2005-07-08 01:40:24.000 | 1369 1369 | 167 167 | 2005-07-09 02:17:24.000 | 2 2 | 2020-12-23 07:16:23 |
| 5131 | 2005-07-09 07:35:03.000 | 3179 3179 | 167 167 | 2005-07-10 06:05:03.000 | 1 1 | 2020-12-23 07:16:33 |
| 5178 | 2005-07-09 09:59:52.000 | 1750 1750 | 167 167 | 2005-07-18 13:01:52.000 | 2 2 | 2020-12-23 07:16:33 |
| 5191 | 2005-07-09 10:26:48.000 | 2131 2131 | 167 167 | 2005-07-10 15:52:48.000 | 2 2 | 2020-12-23 07:16:33 |
| 5413 | 2005-07-09 20:28:42.000 | 2056 2056 | 167 167 | 2005-07-10 19:23:42.000 | 2 2 | 2020-12-23 07:16:37 |
| 5781 | 2005-07-10 13:49:30.000 | 3191 3191 | 167 167 | 2005-07-11 12:11:30.000 | 2 2 | 2020-12-23 07:16:42 |
| 6269 | 2005-07-11 15:58:43.000 | 3915 3915 | 167 167 | 2005-07-13 13:25:43.000 | 1 1 | 2020-12-23 07:16:49 |
| 7608 | 2005-07-28 00:08:36.000 | 1256 1256 | 167 167 | 2005-07-28 18:13:36.000 | 1 1 | 2020-12-23 07:17:09 |
| 8092 | 2005-07-28 18:28:07.000 | 2034 2034 | 167 167 | 2005-07-30 19:17:07.000 | 2 2 | 2020-12-23 07:17:16 |
| 8227 | 2005-07-29 00:02:22.000 | 269 269 | 167 167 | 2005-07-31 04:05:22.000 | 1 1 | 2020-12-23 07:17:18 |
| 8318 | 2005-07-29 03:44:30.000 | 4524 4524 | 167 167 | 2005-07-30 05:03:30.000 | 2 2 | 2020-12-23 07:17:19 |
| 8793 | 2005-07-29 20:57:22.000 | 1819 1819 | 167 167 | 2005-08-02 01:40:22.000 | 2 2 | 2020-12-23 07:17:26 |
| 8864 | 2005-07-29 23:52:12.000 | 2321 2321 | 167 167 | 2005-07-30 22:12:12.000 | 1 1 | 2020-12-23 07:17:27 |
| 9563 | 2005-07-31 02:28:39.000 | 3858 3858 | 167 167 | 2005-08-05 22:10:39.000 | 1 1 | 2020-12-23 07:17:37 |
| 10285 | 2005-08-01 03:35:11.000 | 4523 4523 | 167 167 | 2005-08-05 03:55:11.000 | 2 2 | 2020-12-23 07:17:48 |
| 12642 | 2005-08-18 18:19:16.000 | 2080 2080 | 167 167 | 2005-08-20 17:30:16.000 | 2 2 | 2020-12-23 07:18:20 |
| 12717 | 2005-08-18 21:15:40.000 | 3551 3551 | 167 167 | 2005-08-20 00:59:40.000 | 2 2 | 2020-12-23 07:18:21 |
| 12978 | 2005-08-19 06:57:27.000 | 3252 3252 | 167 167 | 2005-08-20 09:10:27.000 | 2 2 | 2020-12-23 07:18:25 |
| 13825 | 2005-08-20 13:43:22.000 | 2135 2135 | 167 167 | 2005-08-29 19:13:22.000 | 1 1 | 2020-12-23 07:18:38 |
| 13870 | 2005-08-20 15:09:16.000 | 563 563 | 167 167 | 2005-08-28 10:00:16.000 | 2 2 | 2020-12-23 07:18:39 |
| 15003 | 2005-08-22 08:11:24.000 | 4009 4009 | 167 167 | 2005-08-28 08:49:24.000 | 1 1 | 2020-12-23 07:18:55 |
| 15050 | 2005-08-22 10:07:52.000 | 3961 3961 | 167 167 | 2005-08-23 04:45:52.000 | 1 1 | 2020-12-23 07:18:55 |
| 15478 | 2005-08-23 01:50:31.000 | 4563 4563 | 167 167 | 2005-08-27 21:40:31.000 | 2 2 | 2020-12-23 07:19:02 |
| 15530 | 2005-08-23 03:50:48.000 | 154 154 | 167 167 | 2005-08-28 22:17:48.000 | 2 2 | 2020-12-23 07:19:02 |
| 15915 | 2005-08-23 17:52:01.000 | 3566 3566 | 167 167 | 2005-08-24 20:40:01.000 | 2 2 | 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) ;