rental
25 rows where customer_id = 582
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 |
|---|---|---|---|---|---|---|
| 281 | 2005-05-26 18:49:35.000 | 1208 1208 | 582 582 | 2005-05-27 18:11:35.000 | 2 2 | 2020-12-23 07:15:23 |
| 1719 | 2005-06-16 14:55:53.000 | 2699 2699 | 582 582 | 2005-06-18 14:12:53.000 | 1 1 | 2020-12-23 07:15:43 |
| 2337 | 2005-06-18 11:15:27.000 | 4522 4522 | 582 582 | 2005-06-26 06:59:27.000 | 2 2 | 2020-12-23 07:15:52 |
| 3071 | 2005-06-20 14:20:42.000 | 1198 1198 | 582 582 | 2005-06-24 19:01:42.000 | 1 1 | 2020-12-23 07:16:02 |
| 3767 | 2005-07-06 13:07:27.000 | 923 923 | 582 582 | 2005-07-08 18:48:27.000 | 1 1 | 2020-12-23 07:16:12 |
| 6629 | 2005-07-12 09:18:35.000 | 2855 2855 | 582 582 | 2005-07-20 11:34:35.000 | 2 2 | 2020-12-23 07:16:54 |
| 7126 | 2005-07-27 06:13:13.000 | 3240 3240 | 582 582 | 2005-07-28 08:22:13.000 | 2 2 | 2020-12-23 07:17:02 |
| 7311 | 2005-07-27 13:02:54.000 | 2807 2807 | 582 582 | 2005-08-04 09:52:54.000 | 1 1 | 2020-12-23 07:17:04 |
| 7412 | 2005-07-27 16:44:34.000 | 950 950 | 582 582 | 2005-08-04 15:06:34.000 | 2 2 | 2020-12-23 07:17:06 |
| 7575 | 2005-07-27 22:53:52.000 | 702 702 | 582 582 | 2005-07-29 02:02:52.000 | 1 1 | 2020-12-23 07:17:08 |
| 8308 | 2005-07-29 03:22:15.000 | 601 601 | 582 582 | 2005-08-04 21:38:15.000 | 2 2 | 2020-12-23 07:17:19 |
| 8554 | 2005-07-29 11:16:29.000 | 1563 1563 | 582 582 | 2005-07-31 06:38:29.000 | 2 2 | 2020-12-23 07:17:23 |
| 8778 | 2005-07-29 20:14:25.000 | 3654 3654 | 582 582 | 2005-08-04 00:50:25.000 | 1 1 | 2020-12-23 07:17:26 |
| 9768 | 2005-07-31 09:48:41.000 | 2656 2656 | 582 582 | 2005-08-08 11:40:41.000 | 2 2 | 2020-12-23 07:17:40 |
| 11290 | 2005-08-02 14:57:44.000 | 425 425 | 582 582 | 2005-08-09 19:36:44.000 | 2 2 | 2020-12-23 07:18:01 |
| 11667 | 2005-08-17 05:46:55.000 | 1516 1516 | 582 582 | 2005-08-26 08:19:55.000 | 1 1 | 2020-12-23 07:18:07 |
| 11708 | 2005-08-17 07:26:47.000 | 76 76 | 582 582 | 2005-08-22 04:11:47.000 | 1 1 | 2020-12-23 07:18:07 |
| 12127 | 2006-02-14 15:16:03.000 | 4218 4218 | 582 582 | 2 2 | 2020-12-23 07:18:13 | |
| 13815 | 2005-08-20 13:08:53.000 | 3388 3388 | 582 582 | 2005-08-29 13:11:53.000 | 2 2 | 2020-12-23 07:18:38 |
| 14376 | 2005-08-21 09:48:56.000 | 1936 1936 | 582 582 | 2005-08-22 12:15:56.000 | 2 2 | 2020-12-23 07:18:46 |
| 14568 | 2005-08-21 16:30:48.000 | 3331 3331 | 582 582 | 2005-08-22 13:49:48.000 | 1 1 | 2020-12-23 07:18:49 |
| 15090 | 2005-08-22 11:34:33.000 | 2918 2918 | 582 582 | 2005-08-31 06:09:33.000 | 2 2 | 2020-12-23 07:18:56 |
| 15503 | 2005-08-23 02:44:49.000 | 4519 4519 | 582 582 | 2005-08-27 06:33:49.000 | 2 2 | 2020-12-23 07:19:02 |
| 15539 | 2005-08-23 04:09:03.000 | 2853 2853 | 582 582 | 2005-08-26 04:01:03.000 | 1 1 | 2020-12-23 07:19:03 |
| 15911 | 2005-08-23 17:44:53.000 | 3006 3006 | 582 582 | 2005-09-01 19:14:53.000 | 1 1 | 2020-12-23 07:19:08 |
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) ;