rental
21 rows where customer_id = 358
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 |
|---|---|---|---|---|---|---|
| 858 | 2005-05-30 02:10:32.000 | 1258 1258 | 358 358 | 2005-06-01 04:42:32.000 | 1 1 | 2020-12-23 07:15:31 |
| 1455 | 2005-06-15 19:51:06.000 | 2194 2194 | 358 358 | 2005-06-18 21:54:06.000 | 2 2 | 2020-12-23 07:15:39 |
| 1908 | 2005-06-17 05:10:36.000 | 399 399 | 358 358 | 2005-06-19 03:52:36.000 | 1 1 | 2020-12-23 07:15:45 |
| 2114 | 2005-06-17 20:00:25.000 | 3541 3541 | 358 358 | 2005-06-23 18:51:25.000 | 1 1 | 2020-12-23 07:15:48 |
| 2721 | 2005-06-19 14:53:24.000 | 3786 3786 | 358 358 | 2005-06-21 18:22:24.000 | 2 2 | 2020-12-23 07:15:57 |
| 2749 | 2005-06-19 16:27:35.000 | 1540 1540 | 358 358 | 2005-06-25 21:06:35.000 | 2 2 | 2020-12-23 07:15:57 |
| 3245 | 2005-06-21 03:06:11.000 | 2057 2057 | 358 358 | 2005-06-25 08:06:11.000 | 2 2 | 2020-12-23 07:16:04 |
| 3753 | 2005-07-06 12:34:06.000 | 774 774 | 358 358 | 2005-07-07 14:19:06.000 | 2 2 | 2020-12-23 07:16:12 |
| 3809 | 2005-07-06 15:16:37.000 | 2932 2932 | 358 358 | 2005-07-09 14:45:37.000 | 1 1 | 2020-12-23 07:16:13 |
| 5023 | 2005-07-09 02:23:16.000 | 3206 3206 | 358 358 | 2005-07-15 20:37:16.000 | 1 1 | 2020-12-23 07:16:31 |
| 6362 | 2005-07-11 21:09:31.000 | 4259 4259 | 358 358 | 2005-07-13 23:08:31.000 | 1 1 | 2020-12-23 07:16:50 |
| 8621 | 2005-07-29 13:52:42.000 | 2473 2473 | 358 358 | 2005-07-30 11:42:42.000 | 2 2 | 2020-12-23 07:17:24 |
| 9062 | 2005-07-30 07:23:17.000 | 2780 2780 | 358 358 | 2005-08-02 12:07:17.000 | 1 1 | 2020-12-23 07:17:30 |
| 9568 | 2005-07-31 02:37:44.000 | 1248 1248 | 358 358 | 2005-08-02 07:07:44.000 | 2 2 | 2020-12-23 07:17:37 |
| 10193 | 2005-08-01 00:33:27.000 | 2036 2036 | 358 358 | 2005-08-07 20:15:27.000 | 1 1 | 2020-12-23 07:17:46 |
| 10482 | 2005-08-01 10:17:47.000 | 48 48 | 358 358 | 2005-08-02 15:04:47.000 | 2 2 | 2020-12-23 07:17:50 |
| 11149 | 2005-08-02 09:51:43.000 | 3254 3254 | 358 358 | 2005-08-11 09:40:43.000 | 2 2 | 2020-12-23 07:18:00 |
| 11653 | 2005-08-17 05:06:10.000 | 4475 4475 | 358 358 | 2005-08-24 03:09:10.000 | 2 2 | 2020-12-23 07:18:07 |
| 12452 | 2005-08-18 11:14:35.000 | 4260 4260 | 358 358 | 2005-08-27 09:09:35.000 | 1 1 | 2020-12-23 07:18:17 |
| 13197 | 2005-08-19 14:44:03.000 | 3190 3190 | 358 358 | 2005-08-22 10:11:03.000 | 1 1 | 2020-12-23 07:18:28 |
| 14004 | 2005-08-20 20:16:35.000 | 3445 3445 | 358 358 | 2005-08-28 17:23:35.000 | 2 2 | 2020-12-23 07:18:41 |
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) ;