rental
22 rows where customer_id = 65
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 |
|---|---|---|---|---|---|---|
| 295 | 2005-05-26 20:33:20.000 | 4030 4030 | 65 65 | 2005-05-27 18:23:20.000 | 2 2 | 2020-12-23 07:15:24 |
| 657 | 2005-05-28 20:23:09.000 | 848 848 | 65 65 | 2005-06-01 02:11:09.000 | 1 1 | 2020-12-23 07:15:28 |
| 2173 | 2005-06-18 00:08:20.000 | 995 995 | 65 65 | 2005-06-25 05:30:20.000 | 1 1 | 2020-12-23 07:15:49 |
| 3051 | 2005-06-20 13:06:52.000 | 1408 1408 | 65 65 | 2005-06-25 13:03:52.000 | 2 2 | 2020-12-23 07:16:01 |
| 3535 | 2005-07-06 01:32:46.000 | 4214 4214 | 65 65 | 2005-07-11 03:15:46.000 | 1 1 | 2020-12-23 07:16:08 |
| 4240 | 2005-07-07 13:33:12.000 | 1024 1024 | 65 65 | 2005-07-13 12:28:12.000 | 1 1 | 2020-12-23 07:16:19 |
| 4635 | 2005-07-08 08:42:40.000 | 2434 2434 | 65 65 | 2005-07-14 10:31:40.000 | 1 1 | 2020-12-23 07:16:25 |
| 5735 | 2005-07-10 11:39:15.000 | 3259 3259 | 65 65 | 2005-07-19 09:52:15.000 | 1 1 | 2020-12-23 07:16:41 |
| 6527 | 2005-07-12 04:23:06.000 | 538 538 | 65 65 | 2005-07-17 00:20:06.000 | 1 1 | 2020-12-23 07:16:53 |
| 7877 | 2005-07-28 10:25:36.000 | 2576 2576 | 65 65 | 2005-08-05 12:46:36.000 | 1 1 | 2020-12-23 07:17:13 |
| 8392 | 2005-07-29 06:00:27.000 | 1323 1323 | 65 65 | 2005-08-02 00:30:27.000 | 2 2 | 2020-12-23 07:17:20 |
| 8404 | 2005-07-29 06:27:01.000 | 2086 2086 | 65 65 | 2005-08-07 04:33:01.000 | 1 1 | 2020-12-23 07:17:20 |
| 9293 | 2005-07-30 16:12:28.000 | 1676 1676 | 65 65 | 2005-08-05 18:34:28.000 | 2 2 | 2020-12-23 07:17:34 |
| 11100 | 2005-08-02 08:08:00.000 | 3047 3047 | 65 65 | 2005-08-10 07:19:00.000 | 1 1 | 2020-12-23 07:17:59 |
| 11227 | 2005-08-02 12:48:05.000 | 1101 1101 | 65 65 | 2005-08-11 14:08:05.000 | 1 1 | 2020-12-23 07:18:01 |
| 11461 | 2005-08-02 21:35:00.000 | 4343 4343 | 65 65 | 2005-08-05 01:34:00.000 | 1 1 | 2020-12-23 07:18:04 |
| 11845 | 2005-08-17 13:16:38.000 | 14 14 | 65 65 | 2005-08-18 11:21:38.000 | 1 1 | 2020-12-23 07:18:09 |
| 12114 | 2005-08-17 23:02:00.000 | 1405 1405 | 65 65 | 2005-08-26 18:02:00.000 | 1 1 | 2020-12-23 07:18:13 |
| 12688 | 2005-08-18 19:59:54.000 | 2315 2315 | 65 65 | 2005-08-26 18:52:54.000 | 2 2 | 2020-12-23 07:18:20 |
| 13692 | 2005-08-20 09:07:52.000 | 1928 1928 | 65 65 | 2005-08-21 05:17:52.000 | 1 1 | 2020-12-23 07:18:36 |
| 14140 | 2005-08-21 02:04:57.000 | 2070 2070 | 65 65 | 2005-08-29 06:41:57.000 | 2 2 | 2020-12-23 07:18:43 |
| 14356 | 2005-08-21 09:08:51.000 | 3169 3169 | 65 65 | 2005-08-24 04:36:51.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) ;