rental
21 rows where customer_id = 226
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 |
|---|---|---|---|---|---|---|
| 3414 | 2005-06-21 16:58:50.000 | 2929 2929 | 226 226 | 2005-06-24 17:26:50.000 | 1 1 | 2020-12-23 07:16:07 |
| 3466 | 2005-06-21 22:13:33.000 | 371 371 | 226 226 | 2005-06-25 21:01:33.000 | 2 2 | 2020-12-23 07:16:07 |
| 3721 | 2005-07-06 11:10:09.000 | 2654 2654 | 226 226 | 2005-07-11 07:45:09.000 | 2 2 | 2020-12-23 07:16:11 |
| 4324 | 2005-07-07 17:57:56.000 | 952 952 | 226 226 | 2005-07-13 22:34:56.000 | 1 1 | 2020-12-23 07:16:20 |
| 5282 | 2005-07-09 15:01:23.000 | 4386 4386 | 226 226 | 2005-07-13 11:06:23.000 | 2 2 | 2020-12-23 07:16:35 |
| 5419 | 2005-07-09 20:47:36.000 | 1516 1516 | 226 226 | 2005-07-12 01:36:36.000 | 1 1 | 2020-12-23 07:16:37 |
| 6712 | 2005-07-12 13:24:47.000 | 4581 4581 | 226 226 | 2005-07-20 09:35:47.000 | 2 2 | 2020-12-23 07:16:55 |
| 7288 | 2005-07-27 12:24:59.000 | 45 45 | 226 226 | 2005-08-02 15:52:59.000 | 2 2 | 2020-12-23 07:17:04 |
| 7329 | 2005-07-27 13:55:34.000 | 906 906 | 226 226 | 2005-08-04 15:15:34.000 | 1 1 | 2020-12-23 07:17:05 |
| 8600 | 2005-07-29 13:01:19.000 | 1488 1488 | 226 226 | 2005-07-31 15:40:19.000 | 2 2 | 2020-12-23 07:17:23 |
| 8627 | 2005-07-29 14:05:12.000 | 4235 4235 | 226 226 | 2005-08-05 16:53:12.000 | 2 2 | 2020-12-23 07:17:24 |
| 12172 | 2005-08-18 01:07:00.000 | 1162 1162 | 226 226 | 2005-08-22 21:01:00.000 | 2 2 | 2020-12-23 07:18:14 |
| 14491 | 2005-08-21 13:55:39.000 | 2072 2072 | 226 226 | 2005-08-29 17:51:39.000 | 1 1 | 2020-12-23 07:18:48 |
| 14708 | 2005-08-21 21:07:23.000 | 2828 2828 | 226 226 | 2005-08-28 15:47:23.000 | 1 1 | 2020-12-23 07:18:51 |
| 14712 | 2005-08-21 21:22:56.000 | 1198 1198 | 226 226 | 2005-08-25 01:53:56.000 | 1 1 | 2020-12-23 07:18:51 |
| 14739 | 2005-08-21 22:33:22.000 | 4026 4026 | 226 226 | 2005-08-22 19:45:22.000 | 1 1 | 2020-12-23 07:18:51 |
| 14934 | 2005-08-22 05:47:15.000 | 815 815 | 226 226 | 2005-08-26 11:32:15.000 | 1 1 | 2020-12-23 07:18:54 |
| 15472 | 2005-08-23 01:39:05.000 | 4293 4293 | 226 226 | 2005-08-25 04:43:05.000 | 1 1 | 2020-12-23 07:19:02 |
| 15901 | 2005-08-23 17:19:17.000 | 2761 2761 | 226 226 | 2005-08-30 14:24:17.000 | 2 2 | 2020-12-23 07:19:08 |
| 15986 | 2005-08-23 20:20:37.000 | 3472 3472 | 226 226 | 2005-08-29 20:49:37.000 | 1 1 | 2020-12-23 07:19:09 |
| 16033 | 2005-08-23 22:06:15.000 | 760 760 | 226 226 | 2005-09-01 02:36:15.000 | 2 2 | 2020-12-23 07:19:10 |
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) ;