rental
26 rows where customer_id = 234
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 |
|---|---|---|---|---|---|---|
| 1125 | 2005-05-31 17:23:44.000 | 1172 1172 | 234 234 | 2005-06-01 15:02:44.000 | 1 1 | 2020-12-23 07:15:35 |
| 1245 | 2005-06-15 05:09:01.000 | 1314 1314 | 234 234 | 2005-06-22 06:55:01.000 | 2 2 | 2020-12-23 07:15:36 |
| 1645 | 2005-06-16 09:10:06.000 | 4434 4434 | 234 234 | 2005-06-23 04:36:06.000 | 2 2 | 2020-12-23 07:15:41 |
| 1674 | 2005-06-16 10:57:00.000 | 3606 3606 | 234 234 | 2005-06-18 07:31:00.000 | 2 2 | 2020-12-23 07:15:42 |
| 1993 | 2005-06-17 10:59:24.000 | 168 168 | 234 234 | 2005-06-23 07:30:24.000 | 2 2 | 2020-12-23 07:15:47 |
| 2005 | 2005-06-17 11:44:54.000 | 4177 4177 | 234 234 | 2005-06-19 10:53:54.000 | 1 1 | 2020-12-23 07:15:47 |
| 2511 | 2005-06-18 23:45:30.000 | 1824 1824 | 234 234 | 2005-06-24 01:21:30.000 | 2 2 | 2020-12-23 07:15:54 |
| 3185 | 2005-06-20 22:58:01.000 | 601 601 | 234 234 | 2005-06-27 00:26:01.000 | 1 1 | 2020-12-23 07:16:03 |
| 3199 | 2005-06-21 00:12:40.000 | 3824 3824 | 234 234 | 2005-06-27 23:26:40.000 | 1 1 | 2020-12-23 07:16:03 |
| 4686 | 2005-07-08 10:53:39.000 | 1398 1398 | 234 234 | 2005-07-10 05:34:39.000 | 2 2 | 2020-12-23 07:16:26 |
| 4721 | 2005-07-08 12:39:31.000 | 3105 3105 | 234 234 | 2005-07-15 18:07:31.000 | 1 1 | 2020-12-23 07:16:26 |
| 10133 | 2005-07-31 21:55:07.000 | 614 614 | 234 234 | 2005-08-08 23:04:07.000 | 1 1 | 2020-12-23 07:17:46 |
| 10541 | 2005-08-01 12:24:54.000 | 1413 1413 | 234 234 | 2005-08-03 16:18:54.000 | 1 1 | 2020-12-23 07:17:51 |
| 10580 | 2005-08-01 13:51:14.000 | 590 590 | 234 234 | 2005-08-08 11:49:14.000 | 2 2 | 2020-12-23 07:17:52 |
| 10968 | 2005-08-02 04:03:13.000 | 888 888 | 234 234 | 2005-08-11 08:36:13.000 | 1 1 | 2020-12-23 07:17:57 |
| 11050 | 2005-08-02 06:17:16.000 | 2077 2077 | 234 234 | 2005-08-09 05:58:16.000 | 1 1 | 2020-12-23 07:17:58 |
| 11073 | 2005-08-02 07:13:03.000 | 4232 4232 | 234 234 | 2005-08-03 05:46:03.000 | 1 1 | 2020-12-23 07:17:59 |
| 11481 | 2005-08-02 22:18:41.000 | 4028 4028 | 234 234 | 2005-08-09 23:43:41.000 | 2 2 | 2020-12-23 07:18:04 |
| 11882 | 2005-08-17 14:33:41.000 | 2401 2401 | 234 234 | 2005-08-26 17:25:41.000 | 2 2 | 2020-12-23 07:18:10 |
| 12226 | 2005-08-18 03:00:48.000 | 682 682 | 234 234 | 2005-08-25 00:43:48.000 | 2 2 | 2020-12-23 07:18:14 |
| 12863 | 2005-08-19 02:35:59.000 | 780 780 | 234 234 | 2005-08-21 21:13:59.000 | 1 1 | 2020-12-23 07:18:23 |
| 12921 | 2005-08-19 04:47:48.000 | 781 781 | 234 234 | 2005-08-25 00:07:48.000 | 2 2 | 2020-12-23 07:18:24 |
| 13349 | 2005-08-19 20:43:16.000 | 4262 4262 | 234 234 | 2005-08-20 16:21:16.000 | 1 1 | 2020-12-23 07:18:30 |
| 15037 | 2005-08-22 09:36:33.000 | 4517 4517 | 234 234 | 2005-08-31 11:20:33.000 | 2 2 | 2020-12-23 07:18:55 |
| 15129 | 2005-08-22 13:03:52.000 | 3782 3782 | 234 234 | 2005-08-29 10:56:52.000 | 2 2 | 2020-12-23 07:18:57 |
| 15778 | 2006-02-14 15:16:03.000 | 1269 1269 | 234 234 | 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) ;