rental
24 rows where customer_id = 11
This data as json, xlsx, CSV (advanced)
Suggested facets: staff_id, rental_date (date), return_date (date), last_update (date)
| rental_id ▼ | rental_date | inventory_id | customer_id | return_date | staff_id | last_update |
|---|---|---|---|---|---|---|
| 987 | 2005-05-30 22:59:12.000 | 390 390 | 11 11 | 2005-06-07 20:56:12.000 | 1 1 | 2020-12-23 07:15:33 |
| 1470 | 2005-06-15 20:53:07.000 | 4044 4044 | 11 11 | 2005-06-25 02:12:07.000 | 1 1 | 2020-12-23 07:15:39 |
| 1939 | 2005-06-17 07:26:45.000 | 605 605 | 11 11 | 2005-06-25 13:06:45.000 | 2 2 | 2020-12-23 07:15:46 |
| 3192 | 2005-06-20 23:49:12.000 | 3713 3713 | 11 11 | 2005-06-24 03:00:12.000 | 1 1 | 2020-12-23 07:16:03 |
| 4608 | 2005-07-08 07:19:11.000 | 758 758 | 11 11 | 2005-07-11 01:37:11.000 | 1 1 | 2020-12-23 07:16:25 |
| 4943 | 2005-07-08 22:43:05.000 | 2732 2732 | 11 11 | 2005-07-15 18:17:05.000 | 2 2 | 2020-12-23 07:16:30 |
| 5835 | 2005-07-10 16:44:58.000 | 800 800 | 11 11 | 2005-07-17 16:03:58.000 | 2 2 | 2020-12-23 07:16:43 |
| 6146 | 2005-07-11 09:09:59.000 | 3374 3374 | 11 11 | 2005-07-20 11:42:59.000 | 2 2 | 2020-12-23 07:16:47 |
| 7314 | 2005-07-27 13:13:32.000 | 1376 1376 | 11 11 | 2005-08-03 09:24:32.000 | 2 2 | 2020-12-23 07:17:04 |
| 8014 | 2005-07-28 15:32:07.000 | 2339 2339 | 11 11 | 2005-07-31 20:52:07.000 | 1 1 | 2020-12-23 07:17:15 |
| 8100 | 2005-07-28 18:43:11.000 | 2859 2859 | 11 11 | 2005-08-02 15:56:11.000 | 2 2 | 2020-12-23 07:17:16 |
| 8447 | 2005-07-29 07:38:14.000 | 930 930 | 11 11 | 2005-08-05 02:27:14.000 | 2 2 | 2020-12-23 07:17:21 |
| 8715 | 2005-07-29 17:33:45.000 | 860 860 | 11 11 | 2005-08-01 17:30:45.000 | 1 1 | 2020-12-23 07:17:25 |
| 8950 | 2005-07-30 03:17:13.000 | 3015 3015 | 11 11 | 2005-08-07 00:20:13.000 | 1 1 | 2020-12-23 07:17:28 |
| 9292 | 2005-07-30 16:08:21.000 | 1702 1702 | 11 11 | 2005-08-07 10:38:21.000 | 2 2 | 2020-12-23 07:17:34 |
| 10812 | 2005-08-01 22:41:16.000 | 3762 3762 | 11 11 | 2005-08-07 00:50:16.000 | 1 1 | 2020-12-23 07:17:55 |
| 11166 | 2005-08-02 10:14:58.000 | 638 638 | 11 11 | 2005-08-11 11:43:58.000 | 1 1 | 2020-12-23 07:18:00 |
| 11502 | 2005-08-16 23:06:30.000 | 4470 4470 | 11 11 | 2005-08-19 03:49:30.000 | 1 1 | 2020-12-23 07:18:05 |
| 11646 | 2006-02-14 15:16:03.000 | 478 478 | 11 11 | 2 2 | 2020-12-23 07:18:07 | |
| 12015 | 2005-08-17 19:32:44.000 | 593 593 | 11 11 | 2005-08-23 13:36:44.000 | 2 2 | 2020-12-23 07:18:11 |
| 13572 | 2005-08-20 05:07:27.000 | 660 660 | 11 11 | 2005-08-23 23:33:27.000 | 1 1 | 2020-12-23 07:18:34 |
| 13790 | 2005-08-20 12:17:27.000 | 1385 1385 | 11 11 | 2005-08-25 12:20:27.000 | 1 1 | 2020-12-23 07:18:37 |
| 15120 | 2005-08-22 12:42:47.000 | 3083 3083 | 11 11 | 2005-08-23 14:21:47.000 | 1 1 | 2020-12-23 07:18:57 |
| 15240 | 2005-08-22 17:46:41.000 | 2014 2014 | 11 11 | 2005-08-23 15:08:41.000 | 2 2 | 2020-12-23 07:18:58 |
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) ;