rental
28 rows where customer_id = 504
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 |
|---|---|---|---|---|---|---|
| 136 | 2005-05-25 22:02:30.000 | 2296 2296 | 504 504 | 2005-05-31 18:06:30.000 | 1 1 | 2020-12-23 07:15:21 |
| 470 | 2005-05-27 21:17:08.000 | 1613 1613 | 504 504 | 2005-06-04 17:47:08.000 | 1 1 | 2020-12-23 07:15:26 |
| 838 | 2005-05-30 00:27:57.000 | 2859 2859 | 504 504 | 2005-06-06 22:19:57.000 | 2 2 | 2020-12-23 07:15:31 |
| 2720 | 2005-06-19 14:51:55.000 | 3597 3597 | 504 504 | 2005-06-27 13:06:55.000 | 1 1 | 2020-12-23 07:15:57 |
| 2938 | 2005-06-20 05:17:22.000 | 1795 1795 | 504 504 | 2005-06-26 09:38:22.000 | 1 1 | 2020-12-23 07:16:00 |
| 3712 | 2005-07-06 10:47:35.000 | 3741 3741 | 504 504 | 2005-07-15 09:39:35.000 | 1 1 | 2020-12-23 07:16:11 |
| 3713 | 2005-07-06 10:49:30.000 | 1823 1823 | 504 504 | 2005-07-13 10:44:30.000 | 1 1 | 2020-12-23 07:16:11 |
| 4329 | 2005-07-07 18:04:16.000 | 638 638 | 504 504 | 2005-07-15 17:58:16.000 | 2 2 | 2020-12-23 07:16:20 |
| 4757 | 2005-07-08 14:36:51.000 | 1278 1278 | 504 504 | 2005-07-12 15:28:51.000 | 1 1 | 2020-12-23 07:16:27 |
| 5153 | 2005-07-09 08:35:05.000 | 2826 2826 | 504 504 | 2005-07-18 14:21:05.000 | 1 1 | 2020-12-23 07:16:33 |
| 7342 | 2005-07-27 14:25:17.000 | 4083 4083 | 504 504 | 2005-08-04 10:02:17.000 | 2 2 | 2020-12-23 07:17:05 |
| 7567 | 2005-07-27 22:38:05.000 | 1066 1066 | 504 504 | 2005-07-30 17:20:05.000 | 1 1 | 2020-12-23 07:17:08 |
| 7807 | 2005-07-28 07:58:27.000 | 2204 2204 | 504 504 | 2005-08-01 02:48:27.000 | 2 2 | 2020-12-23 07:17:12 |
| 7875 | 2005-07-28 10:23:48.000 | 3693 3693 | 504 504 | 2005-08-02 12:09:48.000 | 1 1 | 2020-12-23 07:17:13 |
| 7944 | 2005-07-28 12:51:22.000 | 3148 3148 | 504 504 | 2005-07-30 12:19:22.000 | 1 1 | 2020-12-23 07:17:14 |
| 8393 | 2005-07-29 06:02:11.000 | 3369 3369 | 504 504 | 2005-08-07 03:23:11.000 | 1 1 | 2020-12-23 07:17:20 |
| 10397 | 2005-08-01 07:11:27.000 | 4168 4168 | 504 504 | 2005-08-03 07:51:27.000 | 1 1 | 2020-12-23 07:17:49 |
| 10509 | 2005-08-01 11:25:28.000 | 96 96 | 504 504 | 2005-08-10 09:19:28.000 | 2 2 | 2020-12-23 07:17:51 |
| 11569 | 2005-08-17 01:31:04.000 | 2592 2592 | 504 504 | 2005-08-24 03:36:04.000 | 2 2 | 2020-12-23 07:18:06 |
| 12769 | 2005-08-18 23:26:40.000 | 926 926 | 504 504 | 2005-08-25 03:03:40.000 | 1 1 | 2020-12-23 07:18:22 |
| 13166 | 2005-08-19 13:36:28.000 | 4386 4386 | 504 504 | 2005-08-22 07:57:28.000 | 1 1 | 2020-12-23 07:18:28 |
| 13206 | 2005-08-19 15:05:34.000 | 2477 2477 | 504 504 | 2005-08-21 20:37:34.000 | 2 2 | 2020-12-23 07:18:28 |
| 13387 | 2005-08-19 21:46:10.000 | 123 123 | 504 504 | 2005-08-24 01:16:10.000 | 1 1 | 2020-12-23 07:18:31 |
| 13859 | 2005-08-20 14:53:43.000 | 4381 4381 | 504 504 | 2005-08-28 09:50:43.000 | 1 1 | 2020-12-23 07:18:38 |
| 15018 | 2005-08-22 08:52:38.000 | 394 394 | 504 504 | 2005-08-25 08:08:38.000 | 1 1 | 2020-12-23 07:18:55 |
| 15166 | 2005-08-22 15:05:37.000 | 1530 1530 | 504 504 | 2005-08-30 12:22:37.000 | 2 2 | 2020-12-23 07:18:57 |
| 15723 | 2005-08-23 11:17:26.000 | 3915 3915 | 504 504 | 2005-08-31 13:58:26.000 | 2 2 | 2020-12-23 07:19:05 |
| 16022 | 2005-08-23 21:44:27.000 | 2925 2925 | 504 504 | 2005-08-28 01:52:27.000 | 1 1 | 2020-12-23 07:19:10 |
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) ;