rental
27 rows where customer_id = 331
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 |
|---|---|---|---|---|---|---|
| 87 | 2005-05-25 13:52:43.000 | 1586 1586 | 331 331 | 2005-05-29 11:12:43.000 | 2 2 | 2020-12-23 07:15:21 |
| 996 | 2005-05-31 00:06:20.000 | 2075 2075 | 331 331 | 2005-05-31 21:29:20.000 | 2 2 | 2020-12-23 07:15:33 |
| 1415 | 2005-06-15 17:31:57.000 | 1885 1885 | 331 331 | 2005-06-16 22:22:57.000 | 2 2 | 2020-12-23 07:15:38 |
| 2528 | 2005-06-19 01:14:12.000 | 1836 1836 | 331 331 | 2005-06-26 05:08:12.000 | 2 2 | 2020-12-23 07:15:54 |
| 2587 | 2005-06-19 05:06:14.000 | 2188 2188 | 331 331 | 2005-06-24 10:50:14.000 | 2 2 | 2020-12-23 07:15:55 |
| 3505 | 2005-07-06 00:19:32.000 | 2630 2630 | 331 331 | 2005-07-14 20:14:32.000 | 2 2 | 2020-12-23 07:16:08 |
| 3613 | 2005-07-06 05:45:53.000 | 3776 3776 | 331 331 | 2005-07-07 10:02:53.000 | 1 1 | 2020-12-23 07:16:10 |
| 3871 | 2005-07-06 17:58:51.000 | 3114 3114 | 331 331 | 2005-07-15 22:18:51.000 | 2 2 | 2020-12-23 07:16:14 |
| 4051 | 2005-07-07 03:37:28.000 | 2715 2715 | 331 331 | 2005-07-09 01:40:28.000 | 1 1 | 2020-12-23 07:16:16 |
| 4063 | 2005-07-07 04:23:57.000 | 1452 1452 | 331 331 | 2005-07-14 23:35:57.000 | 2 2 | 2020-12-23 07:16:16 |
| 4326 | 2005-07-07 18:01:22.000 | 4037 4037 | 331 331 | 2005-07-16 15:45:22.000 | 1 1 | 2020-12-23 07:16:20 |
| 5152 | 2005-07-09 08:34:44.000 | 4005 4005 | 331 331 | 2005-07-10 05:26:44.000 | 1 1 | 2020-12-23 07:16:33 |
| 5885 | 2005-07-10 19:33:50.000 | 3129 3129 | 331 331 | 2005-07-17 00:26:50.000 | 2 2 | 2020-12-23 07:16:44 |
| 5947 | 2005-07-10 23:07:42.000 | 327 327 | 331 331 | 2005-07-18 23:13:42.000 | 1 1 | 2020-12-23 07:16:44 |
| 8231 | 2005-07-29 00:14:37.000 | 1083 1083 | 331 331 | 2005-07-31 19:12:37.000 | 1 1 | 2020-12-23 07:17:18 |
| 8995 | 2005-07-30 04:53:11.000 | 3575 3575 | 331 331 | 2005-08-07 00:24:11.000 | 1 1 | 2020-12-23 07:17:29 |
| 9401 | 2005-07-30 20:18:19.000 | 2057 2057 | 331 331 | 2005-08-07 15:46:19.000 | 1 1 | 2020-12-23 07:17:35 |
| 10188 | 2005-08-01 00:19:41.000 | 1221 1221 | 331 331 | 2005-08-08 00:19:41.000 | 2 2 | 2020-12-23 07:17:46 |
| 11052 | 2005-08-02 06:26:19.000 | 1089 1089 | 331 331 | 2005-08-06 04:20:19.000 | 2 2 | 2020-12-23 07:17:58 |
| 11362 | 2005-08-02 17:47:25.000 | 2628 2628 | 331 331 | 2005-08-07 20:14:25.000 | 1 1 | 2020-12-23 07:18:03 |
| 12533 | 2005-08-18 14:01:40.000 | 795 795 | 331 331 | 2005-08-20 15:32:40.000 | 1 1 | 2020-12-23 07:18:18 |
| 13795 | 2005-08-20 12:32:09.000 | 2837 2837 | 331 331 | 2005-08-21 17:28:09.000 | 1 1 | 2020-12-23 07:18:37 |
| 14256 | 2005-08-21 05:52:27.000 | 2922 2922 | 331 331 | 2005-08-29 02:10:27.000 | 2 2 | 2020-12-23 07:18:44 |
| 14628 | 2005-08-21 18:37:24.000 | 3636 3636 | 331 331 | 2005-08-27 20:25:24.000 | 2 2 | 2020-12-23 07:18:49 |
| 15339 | 2005-08-22 20:52:12.000 | 1660 1660 | 331 331 | 2005-08-26 00:36:12.000 | 2 2 | 2020-12-23 07:19:00 |
| 15447 | 2005-08-23 00:53:57.000 | 4090 4090 | 331 331 | 2005-08-29 06:19:57.000 | 2 2 | 2020-12-23 07:19:01 |
| 15521 | 2005-08-23 03:30:51.000 | 134 134 | 331 331 | 2005-08-28 22:09:51.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) ;