rental
27 rows where customer_id = 407
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 |
|---|---|---|---|---|---|---|
| 619 | 2005-05-28 15:52:26.000 | 2482 2482 | 407 407 | 2005-06-06 17:55:26.000 | 2 2 | 2020-12-23 07:15:28 |
| 1698 | 2005-06-16 13:04:42.000 | 1474 1474 | 407 407 | 2005-06-21 15:54:42.000 | 1 1 | 2020-12-23 07:15:42 |
| 2597 | 2005-06-19 05:53:46.000 | 2278 2278 | 407 407 | 2005-06-20 05:14:46.000 | 1 1 | 2020-12-23 07:15:55 |
| 4296 | 2005-07-07 16:16:03.000 | 977 977 | 407 407 | 2005-07-08 20:16:03.000 | 2 2 | 2020-12-23 07:16:20 |
| 5070 | 2005-07-09 04:58:26.000 | 2305 2305 | 407 407 | 2005-07-09 23:00:26.000 | 2 2 | 2020-12-23 07:16:32 |
| 5590 | 2005-07-10 04:23:11.000 | 4442 4442 | 407 407 | 2005-07-19 09:03:11.000 | 1 1 | 2020-12-23 07:16:39 |
| 6727 | 2005-07-12 13:54:25.000 | 3793 3793 | 407 407 | 2005-07-14 17:29:25.000 | 1 1 | 2020-12-23 07:16:55 |
| 7363 | 2005-07-27 14:58:29.000 | 1649 1649 | 407 407 | 2005-08-05 09:02:29.000 | 1 1 | 2020-12-23 07:17:05 |
| 7643 | 2005-07-28 01:19:44.000 | 4369 4369 | 407 407 | 2005-08-04 21:16:44.000 | 1 1 | 2020-12-23 07:17:09 |
| 8078 | 2005-07-28 17:54:42.000 | 3839 3839 | 407 407 | 2005-07-30 18:18:42.000 | 2 2 | 2020-12-23 07:17:16 |
| 8109 | 2005-07-28 19:07:44.000 | 652 652 | 407 407 | 2005-07-31 14:59:44.000 | 1 1 | 2020-12-23 07:17:16 |
| 8197 | 2005-07-28 23:04:10.000 | 4126 4126 | 407 407 | 2005-08-05 00:06:10.000 | 2 2 | 2020-12-23 07:17:17 |
| 8571 | 2005-07-29 11:48:39.000 | 1778 1778 | 407 407 | 2005-08-03 06:35:39.000 | 2 2 | 2020-12-23 07:17:23 |
| 8802 | 2005-07-29 21:25:51.000 | 296 296 | 407 407 | 2005-07-30 18:15:51.000 | 2 2 | 2020-12-23 07:17:26 |
| 10774 | 2005-08-01 20:54:33.000 | 4231 4231 | 407 407 | 2005-08-08 20:59:33.000 | 2 2 | 2020-12-23 07:17:55 |
| 11214 | 2005-08-02 12:19:50.000 | 2722 2722 | 407 407 | 2005-08-11 06:38:50.000 | 1 1 | 2020-12-23 07:18:00 |
| 11222 | 2005-08-02 12:32:28.000 | 1780 1780 | 407 407 | 2005-08-11 18:15:28.000 | 2 2 | 2020-12-23 07:18:00 |
| 11382 | 2005-08-02 18:20:52.000 | 3848 3848 | 407 407 | 2005-08-07 17:06:52.000 | 1 1 | 2020-12-23 07:18:03 |
| 11518 | 2005-08-16 23:59:49.000 | 3297 3297 | 407 407 | 2005-08-17 22:51:49.000 | 2 2 | 2020-12-23 07:18:05 |
| 11677 | 2005-08-17 06:06:26.000 | 2206 2206 | 407 407 | 2005-08-20 04:35:26.000 | 2 2 | 2020-12-23 07:18:07 |
| 12566 | 2005-08-18 15:13:04.000 | 1684 1684 | 407 407 | 2005-08-21 19:29:04.000 | 2 2 | 2020-12-23 07:18:19 |
| 12931 | 2005-08-19 05:11:47.000 | 3070 3070 | 407 407 | 2005-08-21 00:59:47.000 | 1 1 | 2020-12-23 07:18:24 |
| 13800 | 2005-08-20 12:40:48.000 | 1552 1552 | 407 407 | 2005-08-22 15:06:48.000 | 1 1 | 2020-12-23 07:18:37 |
| 13856 | 2005-08-20 14:49:32.000 | 4196 4196 | 407 407 | 2005-08-29 12:37:32.000 | 2 2 | 2020-12-23 07:18:38 |
| 14401 | 2005-08-21 10:36:20.000 | 3468 3468 | 407 407 | 2005-08-30 06:45:20.000 | 1 1 | 2020-12-23 07:18:46 |
| 15320 | 2005-08-22 20:17:49.000 | 648 648 | 407 407 | 2005-08-28 17:31:49.000 | 1 1 | 2020-12-23 07:19:00 |
| 15334 | 2005-08-22 20:44:35.000 | 3882 3882 | 407 407 | 2005-08-29 23:03:35.000 | 2 2 | 2020-12-23 07:19:00 |
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) ;