rental
25 rows where customer_id = 41
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 |
|---|---|---|---|---|---|---|
| 2563 | 2005-06-19 03:24:17.000 | 1935 1935 | 41 41 | 2005-06-23 04:08:17.000 | 2 2 | 2020-12-23 07:15:55 |
| 3246 | 2005-06-21 03:10:01.000 | 4432 4432 | 41 41 | 2005-06-28 00:46:01.000 | 1 1 | 2020-12-23 07:16:04 |
| 3827 | 2005-07-06 15:52:03.000 | 2072 2072 | 41 41 | 2005-07-08 21:43:03.000 | 2 2 | 2020-12-23 07:16:13 |
| 4294 | 2005-07-07 15:56:23.000 | 2845 2845 | 41 41 | 2005-07-15 14:50:23.000 | 2 2 | 2020-12-23 07:16:20 |
| 4543 | 2005-07-08 04:06:55.000 | 913 913 | 41 41 | 2005-07-12 23:17:55.000 | 2 2 | 2020-12-23 07:16:24 |
| 4575 | 2005-07-08 05:49:14.000 | 231 231 | 41 41 | 2005-07-11 04:08:14.000 | 2 2 | 2020-12-23 07:16:24 |
| 6976 | 2005-07-27 00:40:01.000 | 3096 3096 | 41 41 | 2005-07-31 22:30:01.000 | 2 2 | 2020-12-23 07:16:59 |
| 7153 | 2005-07-27 07:15:38.000 | 2657 2657 | 41 41 | 2005-07-28 09:56:38.000 | 1 1 | 2020-12-23 07:17:02 |
| 7517 | 2005-07-27 20:57:07.000 | 3177 3177 | 41 41 | 2005-08-04 15:08:07.000 | 1 1 | 2020-12-23 07:17:07 |
| 8008 | 2005-07-28 15:25:55.000 | 2093 2093 | 41 41 | 2005-08-04 13:16:55.000 | 1 1 | 2020-12-23 07:17:14 |
| 8098 | 2005-07-28 18:34:20.000 | 1757 1757 | 41 41 | 2005-07-31 19:07:20.000 | 2 2 | 2020-12-23 07:17:16 |
| 8134 | 2005-07-28 20:01:23.000 | 1695 1695 | 41 41 | 2005-08-03 01:00:23.000 | 2 2 | 2020-12-23 07:17:16 |
| 8225 | 2005-07-28 23:59:29.000 | 3631 3631 | 41 41 | 2005-07-30 03:27:29.000 | 2 2 | 2020-12-23 07:17:18 |
| 8712 | 2005-07-29 17:30:06.000 | 2800 2800 | 41 41 | 2005-08-03 22:55:06.000 | 2 2 | 2020-12-23 07:17:25 |
| 9313 | 2005-07-30 16:59:43.000 | 4070 4070 | 41 41 | 2005-08-05 14:06:43.000 | 2 2 | 2020-12-23 07:17:34 |
| 10064 | 2005-07-31 19:27:02.000 | 3140 3140 | 41 41 | 2005-08-06 21:15:02.000 | 1 1 | 2020-12-23 07:17:45 |
| 10170 | 2005-07-31 23:27:31.000 | 804 804 | 41 41 | 2005-08-08 04:53:31.000 | 2 2 | 2020-12-23 07:17:46 |
| 10495 | 2005-08-01 10:45:51.000 | 2232 2232 | 41 41 | 2005-08-06 08:11:51.000 | 1 1 | 2020-12-23 07:17:51 |
| 10853 | 2005-08-02 00:00:54.000 | 2682 2682 | 41 41 | 2005-08-10 05:37:54.000 | 2 2 | 2020-12-23 07:17:56 |
| 12147 | 2005-08-18 00:10:20.000 | 705 705 | 41 41 | 2005-08-23 20:36:20.000 | 2 2 | 2020-12-23 07:18:13 |
| 12173 | 2005-08-18 01:08:34.000 | 2830 2830 | 41 41 | 2005-08-24 20:52:34.000 | 1 1 | 2020-12-23 07:18:14 |
| 12821 | 2005-08-19 01:07:02.000 | 3418 3418 | 41 41 | 2005-08-23 01:22:02.000 | 2 2 | 2020-12-23 07:18:22 |
| 14539 | 2005-08-21 15:29:47.000 | 3340 3340 | 41 41 | 2005-08-28 19:01:47.000 | 1 1 | 2020-12-23 07:18:48 |
| 15860 | 2005-08-23 16:08:40.000 | 2583 2583 | 41 41 | 2005-08-28 15:35:40.000 | 1 1 | 2020-12-23 07:19:07 |
| 15875 | 2006-02-14 15:16:03.000 | 3611 3611 | 41 41 | 1 1 | 2020-12-23 07:19:07 |
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) ;