rental
21 rows where customer_id = 222
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 |
|---|---|---|---|---|---|---|
| 5 | 2005-05-24 23:05:21.000 | 2079 2079 | 222 222 | 2005-06-02 04:33:21.000 | 1 1 | 2020-12-23 07:15:20 |
| 134 | 2005-05-25 21:48:41.000 | 2272 2272 | 222 222 | 2005-06-02 18:28:41.000 | 1 1 | 2020-12-23 07:15:21 |
| 416 | 2005-05-27 15:02:10.000 | 2371 2371 | 222 222 | 2005-05-29 10:34:10.000 | 2 2 | 2020-12-23 07:15:25 |
| 809 | 2005-05-29 19:10:20.000 | 2114 2114 | 222 222 | 2005-06-05 19:05:20.000 | 2 2 | 2020-12-23 07:15:30 |
| 1006 | 2005-05-31 00:57:08.000 | 3461 3461 | 222 222 | 2005-06-02 22:35:08.000 | 1 1 | 2020-12-23 07:15:33 |
| 1368 | 2005-06-15 14:27:47.000 | 2020 2020 | 222 222 | 2005-06-23 18:07:47.000 | 2 2 | 2020-12-23 07:15:38 |
| 2603 | 2005-06-19 06:21:25.000 | 587 587 | 222 222 | 2005-06-26 03:19:25.000 | 1 1 | 2020-12-23 07:15:55 |
| 5209 | 2005-07-09 11:22:39.000 | 4441 4441 | 222 222 | 2005-07-17 09:31:39.000 | 1 1 | 2020-12-23 07:16:34 |
| 5266 | 2005-07-09 14:17:40.000 | 2409 2409 | 222 222 | 2005-07-16 10:42:40.000 | 1 1 | 2020-12-23 07:16:34 |
| 5592 | 2005-07-10 04:26:13.000 | 2471 2471 | 222 222 | 2005-07-19 02:32:13.000 | 2 2 | 2020-12-23 07:16:39 |
| 5635 | 2005-07-10 06:28:39.000 | 1457 1457 | 222 222 | 2005-07-17 08:35:39.000 | 2 2 | 2020-12-23 07:16:40 |
| 6129 | 2005-07-11 08:15:09.000 | 3875 3875 | 222 222 | 2005-07-18 13:00:09.000 | 1 1 | 2020-12-23 07:16:47 |
| 6497 | 2005-07-12 03:04:29.000 | 933 933 | 222 222 | 2005-07-17 21:36:29.000 | 2 2 | 2020-12-23 07:16:52 |
| 7786 | 2005-07-28 07:18:26.000 | 2285 2285 | 222 222 | 2005-07-29 03:00:26.000 | 1 1 | 2020-12-23 07:17:11 |
| 8300 | 2005-07-29 02:57:59.000 | 4364 4364 | 222 222 | 2005-08-05 01:12:59.000 | 2 2 | 2020-12-23 07:17:19 |
| 8597 | 2005-07-29 12:55:55.000 | 4218 4218 | 222 222 | 2005-08-05 18:54:55.000 | 1 1 | 2020-12-23 07:17:23 |
| 8787 | 2005-07-29 20:43:49.000 | 2366 2366 | 222 222 | 2005-07-31 15:15:49.000 | 1 1 | 2020-12-23 07:17:26 |
| 10043 | 2005-07-31 19:02:07.000 | 2558 2558 | 222 222 | 2005-08-07 17:58:07.000 | 1 1 | 2020-12-23 07:17:44 |
| 12179 | 2005-08-18 01:21:21.000 | 1499 1499 | 222 222 | 2005-08-19 00:59:21.000 | 1 1 | 2020-12-23 07:18:14 |
| 13477 | 2005-08-20 01:07:00.000 | 1442 1442 | 222 222 | 2005-08-26 02:47:00.000 | 1 1 | 2020-12-23 07:18:32 |
| 14350 | 2005-08-21 08:58:38.000 | 3174 3174 | 222 222 | 2005-08-30 03:29:38.000 | 2 2 | 2020-12-23 07:18:46 |
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) ;