rental
23 rows where customer_id = 365
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 |
|---|---|---|---|---|---|---|
| 120 | 2005-05-25 19:37:47.000 | 37 37 | 365 365 | 2005-06-01 23:29:47.000 | 2 2 | 2020-12-23 07:15:21 |
| 231 | 2005-05-26 11:31:59.000 | 4032 4032 | 365 365 | 2005-05-27 07:27:59.000 | 1 1 | 2020-12-23 07:15:23 |
| 1303 | 2005-06-15 09:55:57.000 | 2001 2001 | 365 365 | 2005-06-20 14:26:57.000 | 2 2 | 2020-12-23 07:15:37 |
| 1578 | 2005-06-16 04:08:16.000 | 3397 3397 | 365 365 | 2005-06-23 07:57:16.000 | 1 1 | 2020-12-23 07:15:40 |
| 1983 | 2005-06-17 10:22:13.000 | 1955 1955 | 365 365 | 2005-06-24 05:04:13.000 | 1 1 | 2020-12-23 07:15:47 |
| 2525 | 2005-06-19 00:48:22.000 | 1307 1307 | 365 365 | 2005-06-24 19:10:22.000 | 2 2 | 2020-12-23 07:15:54 |
| 3156 | 2005-06-20 21:03:46.000 | 2217 2217 | 365 365 | 2005-06-21 23:32:46.000 | 2 2 | 2020-12-23 07:16:03 |
| 4583 | 2005-07-08 06:09:44.000 | 4151 4151 | 365 365 | 2005-07-12 03:44:44.000 | 1 1 | 2020-12-23 07:16:24 |
| 6604 | 2005-07-12 07:57:45.000 | 822 822 | 365 365 | 2005-07-16 05:41:45.000 | 2 2 | 2020-12-23 07:16:54 |
| 7488 | 2005-07-27 19:36:15.000 | 554 554 | 365 365 | 2005-08-05 14:14:15.000 | 1 1 | 2020-12-23 07:17:07 |
| 7634 | 2005-07-28 01:07:01.000 | 4487 4487 | 365 365 | 2005-07-31 05:00:01.000 | 1 1 | 2020-12-23 07:17:09 |
| 8168 | 2005-07-28 21:28:32.000 | 1120 1120 | 365 365 | 2005-07-30 02:10:32.000 | 1 1 | 2020-12-23 07:17:17 |
| 8782 | 2005-07-29 20:29:34.000 | 4379 4379 | 365 365 | 2005-08-04 02:19:34.000 | 1 1 | 2020-12-23 07:17:26 |
| 8856 | 2005-07-29 23:42:00.000 | 2942 2942 | 365 365 | 2005-08-07 03:00:00.000 | 1 1 | 2020-12-23 07:17:27 |
| 9122 | 2005-07-30 09:36:52.000 | 627 627 | 365 365 | 2005-08-05 13:20:52.000 | 1 1 | 2020-12-23 07:17:31 |
| 9184 | 2005-07-30 12:10:19.000 | 51 51 | 365 365 | 2005-08-01 07:35:19.000 | 2 2 | 2020-12-23 07:17:32 |
| 9540 | 2005-07-31 01:40:06.000 | 2200 2200 | 365 365 | 2005-08-01 01:09:06.000 | 1 1 | 2020-12-23 07:17:37 |
| 10717 | 2005-08-01 18:53:53.000 | 2934 2934 | 365 365 | 2005-08-05 21:28:53.000 | 1 1 | 2020-12-23 07:17:54 |
| 12322 | 2005-08-18 06:35:28.000 | 4235 4235 | 365 365 | 2005-08-23 07:34:28.000 | 1 1 | 2020-12-23 07:18:16 |
| 12375 | 2005-08-18 08:20:08.000 | 3508 3508 | 365 365 | 2005-08-21 08:50:08.000 | 2 2 | 2020-12-23 07:18:16 |
| 12804 | 2005-08-19 00:33:15.000 | 147 147 | 365 365 | 2005-08-28 02:16:15.000 | 2 2 | 2020-12-23 07:18:22 |
| 13619 | 2005-08-20 06:39:26.000 | 1068 1068 | 365 365 | 2005-08-23 05:22:26.000 | 2 2 | 2020-12-23 07:18:35 |
| 14463 | 2005-08-21 12:51:49.000 | 1403 1403 | 365 365 | 2005-08-29 12:17:49.000 | 1 1 | 2020-12-23 07:18:47 |
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) ;