rental
24 rows where customer_id = 553
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 |
|---|---|---|---|---|---|---|
| 789 | 2005-05-29 16:17:07.000 | 708 708 | 553 553 | 2005-06-06 18:15:07.000 | 1 1 | 2020-12-23 07:15:30 |
| 1862 | 2005-06-17 01:29:30.000 | 3299 3299 | 553 553 | 2005-06-25 20:43:30.000 | 1 1 | 2020-12-23 07:15:45 |
| 2460 | 2005-06-18 19:54:13.000 | 3933 3933 | 553 553 | 2005-06-27 22:36:13.000 | 2 2 | 2020-12-23 07:15:53 |
| 3103 | 2005-06-20 16:58:19.000 | 1877 1877 | 553 553 | 2005-06-25 21:18:19.000 | 1 1 | 2020-12-23 07:16:02 |
| 3495 | 2005-07-05 23:50:04.000 | 2306 2306 | 553 553 | 2005-07-10 01:06:04.000 | 1 1 | 2020-12-23 07:16:08 |
| 3793 | 2005-07-06 14:32:44.000 | 4558 4558 | 553 553 | 2005-07-08 13:55:44.000 | 1 1 | 2020-12-23 07:16:12 |
| 3859 | 2005-07-06 17:18:15.000 | 2548 2548 | 553 553 | 2005-07-09 16:48:15.000 | 1 1 | 2020-12-23 07:16:13 |
| 3890 | 2005-07-06 18:58:15.000 | 2570 2570 | 553 553 | 2005-07-10 18:51:15.000 | 1 1 | 2020-12-23 07:16:14 |
| 3891 | 2005-07-06 18:58:25.000 | 3216 3216 | 553 553 | 2005-07-09 23:20:25.000 | 2 2 | 2020-12-23 07:16:14 |
| 3942 | 2005-07-06 21:21:34.000 | 677 677 | 553 553 | 2005-07-15 02:34:34.000 | 1 1 | 2020-12-23 07:16:15 |
| 4257 | 2005-07-07 14:18:41.000 | 3927 3927 | 553 553 | 2005-07-08 14:58:41.000 | 1 1 | 2020-12-23 07:16:19 |
| 4662 | 2005-07-08 09:58:54.000 | 1370 1370 | 553 553 | 2005-07-10 12:51:54.000 | 1 1 | 2020-12-23 07:16:26 |
| 4845 | 2005-07-08 18:28:20.000 | 2337 2337 | 553 553 | 2005-07-09 14:38:20.000 | 2 2 | 2020-12-23 07:16:28 |
| 4941 | 2005-07-08 22:39:10.000 | 3816 3816 | 553 553 | 2005-07-15 17:49:10.000 | 2 2 | 2020-12-23 07:16:30 |
| 6069 | 2005-07-11 04:44:59.000 | 256 256 | 553 553 | 2005-07-13 01:00:59.000 | 1 1 | 2020-12-23 07:16:46 |
| 6657 | 2005-07-12 11:11:36.000 | 3697 3697 | 553 553 | 2005-07-16 15:56:36.000 | 1 1 | 2020-12-23 07:16:54 |
| 6812 | 2005-07-12 18:03:25.000 | 2227 2227 | 553 553 | 2005-07-20 18:33:25.000 | 2 2 | 2020-12-23 07:16:57 |
| 7890 | 2005-07-28 10:43:40.000 | 3443 3443 | 553 553 | 2005-07-31 06:07:40.000 | 1 1 | 2020-12-23 07:17:13 |
| 9272 | 2005-07-30 15:05:22.000 | 1352 1352 | 553 553 | 2005-08-05 10:02:22.000 | 2 2 | 2020-12-23 07:17:33 |
| 9601 | 2005-07-31 03:42:17.000 | 1592 1592 | 553 553 | 2005-08-04 02:02:17.000 | 2 2 | 2020-12-23 07:17:38 |
| 11710 | 2005-08-17 07:29:44.000 | 613 613 | 553 553 | 2005-08-19 02:06:44.000 | 2 2 | 2020-12-23 07:18:07 |
| 13972 | 2005-08-20 18:52:17.000 | 1687 1687 | 553 553 | 2005-08-28 15:19:17.000 | 1 1 | 2020-12-23 07:18:40 |
| 15042 | 2005-08-22 09:47:37.000 | 3796 3796 | 553 553 | 2005-08-31 04:42:37.000 | 1 1 | 2020-12-23 07:18:55 |
| 15506 | 2005-08-23 02:48:24.000 | 1914 1914 | 553 553 | 2005-08-28 04:10:24.000 | 1 1 | 2020-12-23 07:19:02 |
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) ;