rental
24 rows where customer_id = 101
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 |
|---|---|---|---|---|---|---|
| 468 | 2005-05-27 21:13:10.000 | 2656 2656 | 101 101 | 2005-06-04 15:26:10.000 | 2 2 | 2020-12-23 07:15:26 |
| 4975 | 2005-07-09 00:02:46.000 | 3730 3730 | 101 101 | 2005-07-14 18:05:46.000 | 2 2 | 2020-12-23 07:16:30 |
| 5100 | 2005-07-09 06:16:03.000 | 3193 3193 | 101 101 | 2005-07-10 10:21:03.000 | 1 1 | 2020-12-23 07:16:32 |
| 5132 | 2005-07-09 07:40:32.000 | 4158 4158 | 101 101 | 2005-07-16 02:16:32.000 | 2 2 | 2020-12-23 07:16:33 |
| 5198 | 2005-07-09 10:49:10.000 | 218 218 | 101 101 | 2005-07-13 04:52:10.000 | 1 1 | 2020-12-23 07:16:33 |
| 5757 | 2005-07-10 12:40:17.000 | 1827 1827 | 101 101 | 2005-07-12 14:02:17.000 | 1 1 | 2020-12-23 07:16:42 |
| 6433 | 2005-07-12 00:12:02.000 | 1357 1357 | 101 101 | 2005-07-21 04:25:02.000 | 2 2 | 2020-12-23 07:16:51 |
| 7112 | 2005-07-27 05:38:42.000 | 4056 4056 | 101 101 | 2005-08-03 05:35:42.000 | 1 1 | 2020-12-23 07:17:01 |
| 7866 | 2005-07-28 10:08:01.000 | 1602 1602 | 101 101 | 2005-08-04 09:29:01.000 | 2 2 | 2020-12-23 07:17:12 |
| 8301 | 2005-07-29 03:00:08.000 | 562 562 | 101 101 | 2005-08-01 04:26:08.000 | 2 2 | 2020-12-23 07:17:19 |
| 8825 | 2005-07-29 22:24:16.000 | 881 881 | 101 101 | 2005-08-05 00:27:16.000 | 2 2 | 2020-12-23 07:17:27 |
| 8833 | 2005-07-29 22:39:36.000 | 1741 1741 | 101 101 | 2005-08-05 21:19:36.000 | 1 1 | 2020-12-23 07:17:27 |
| 9965 | 2005-07-31 16:19:32.000 | 3946 3946 | 101 101 | 2005-08-05 20:18:32.000 | 2 2 | 2020-12-23 07:17:43 |
| 10218 | 2005-08-01 01:09:44.000 | 3886 3886 | 101 101 | 2005-08-05 20:08:44.000 | 1 1 | 2020-12-23 07:17:47 |
| 10253 | 2005-08-01 02:39:49.000 | 1406 1406 | 101 101 | 2005-08-08 04:28:49.000 | 2 2 | 2020-12-23 07:17:47 |
| 10407 | 2005-08-01 07:38:07.000 | 543 543 | 101 101 | 2005-08-02 05:38:07.000 | 2 2 | 2020-12-23 07:17:49 |
| 11959 | 2005-08-17 17:23:35.000 | 2694 2694 | 101 101 | 2005-08-20 20:57:35.000 | 1 1 | 2020-12-23 07:18:11 |
| 12141 | 2006-02-14 15:16:03.000 | 731 731 | 101 101 | 1 1 | 2020-12-23 07:18:13 | |
| 12174 | 2005-08-18 01:08:53.000 | 1458 1458 | 101 101 | 2005-08-20 03:28:53.000 | 1 1 | 2020-12-23 07:18:14 |
| 12471 | 2005-08-18 11:57:00.000 | 242 242 | 101 101 | 2005-08-26 13:17:00.000 | 2 2 | 2020-12-23 07:18:18 |
| 13370 | 2005-08-19 21:20:11.000 | 239 239 | 101 101 | 2005-08-25 22:51:11.000 | 1 1 | 2020-12-23 07:18:31 |
| 14476 | 2005-08-21 13:31:07.000 | 2821 2821 | 101 101 | 2005-08-23 17:06:07.000 | 1 1 | 2020-12-23 07:18:47 |
| 14542 | 2005-08-21 15:36:34.000 | 1247 1247 | 101 101 | 2005-08-27 20:24:34.000 | 2 2 | 2020-12-23 07:18:48 |
| 15103 | 2005-08-22 12:01:06.000 | 853 853 | 101 101 | 2005-08-25 14:40:06.000 | 2 2 | 2020-12-23 07:18:56 |
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) ;