rental
22 rows where customer_id = 394
This data as json, xlsx, CSV (advanced)
Suggested facets: staff_id, rental_date (date), return_date (date), last_update (date)
| rental_id ▼ | rental_date | inventory_id | customer_id | return_date | staff_id | last_update |
|---|---|---|---|---|---|---|
| 213 | 2005-05-26 08:44:08.000 | 1505 1505 | 394 394 | 2005-05-31 12:33:08.000 | 2 2 | 2020-12-23 07:15:22 |
| 977 | 2005-05-30 21:22:26.000 | 2029 2029 | 394 394 | 2005-06-04 22:32:26.000 | 2 2 | 2020-12-23 07:15:33 |
| 1324 | 2005-06-15 11:02:45.000 | 764 764 | 394 394 | 2005-06-17 07:14:45.000 | 1 1 | 2020-12-23 07:15:37 |
| 3543 | 2005-07-06 02:01:08.000 | 3997 3997 | 394 394 | 2005-07-07 03:14:08.000 | 1 1 | 2020-12-23 07:16:09 |
| 3873 | 2005-07-06 18:03:16.000 | 4148 4148 | 394 394 | 2005-07-15 23:58:16.000 | 2 2 | 2020-12-23 07:16:14 |
| 4009 | 2005-07-07 00:28:55.000 | 3607 3607 | 394 394 | 2005-07-10 00:37:55.000 | 1 1 | 2020-12-23 07:16:16 |
| 4307 | 2005-07-07 17:20:39.000 | 2827 2827 | 394 394 | 2005-07-16 14:42:39.000 | 1 1 | 2020-12-23 07:16:20 |
| 5183 | 2005-07-09 10:13:45.000 | 2866 2866 | 394 394 | 2005-07-16 15:55:45.000 | 2 2 | 2020-12-23 07:16:33 |
| 5535 | 2005-07-10 02:27:42.000 | 1623 1623 | 394 394 | 2005-07-12 21:13:42.000 | 1 1 | 2020-12-23 07:16:38 |
| 6059 | 2005-07-11 04:03:54.000 | 1437 1437 | 394 394 | 2005-07-18 01:35:54.000 | 1 1 | 2020-12-23 07:16:46 |
| 7445 | 2005-07-27 17:57:15.000 | 4115 4115 | 394 394 | 2005-07-31 20:24:15.000 | 1 1 | 2020-12-23 07:17:06 |
| 9147 | 2005-07-30 10:38:59.000 | 4167 4167 | 394 394 | 2005-08-02 11:45:59.000 | 2 2 | 2020-12-23 07:17:31 |
| 9864 | 2005-07-31 13:06:54.000 | 3619 3619 | 394 394 | 2005-08-02 11:47:54.000 | 2 2 | 2020-12-23 07:17:42 |
| 10319 | 2005-08-01 04:37:19.000 | 3120 3120 | 394 394 | 2005-08-05 03:18:19.000 | 2 2 | 2020-12-23 07:17:48 |
| 10603 | 2005-08-01 14:30:35.000 | 4024 4024 | 394 394 | 2005-08-05 11:13:35.000 | 2 2 | 2020-12-23 07:17:52 |
| 10718 | 2005-08-01 18:55:38.000 | 2763 2763 | 394 394 | 2005-08-04 14:45:38.000 | 1 1 | 2020-12-23 07:17:54 |
| 12080 | 2005-08-17 22:08:04.000 | 1491 1491 | 394 394 | 2005-08-19 22:55:04.000 | 2 2 | 2020-12-23 07:18:12 |
| 12389 | 2005-08-18 08:48:36.000 | 1891 1891 | 394 394 | 2005-08-22 08:59:36.000 | 2 2 | 2020-12-23 07:18:17 |
| 12510 | 2005-08-18 13:22:25.000 | 3051 3051 | 394 394 | 2005-08-27 17:38:25.000 | 2 2 | 2020-12-23 07:18:18 |
| 13047 | 2005-08-19 09:24:49.000 | 2704 2704 | 394 394 | 2005-08-24 11:06:49.000 | 2 2 | 2020-12-23 07:18:26 |
| 13178 | 2006-02-14 15:16:03.000 | 693 693 | 394 394 | 1 1 | 2020-12-23 07:18:28 | |
| 14605 | 2005-08-21 17:56:06.000 | 476 476 | 394 394 | 2005-08-24 18:35:06.000 | 1 1 | 2020-12-23 07:18:49 |
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) ;