rental
19 rows where customer_id = 370
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 |
|---|---|---|---|---|---|---|
| 1190 | 2005-06-15 01:05:32.000 | 2572 2572 | 370 370 | 2005-06-23 02:34:32.000 | 2 2 | 2020-12-23 07:15:36 |
| 4400 | 2005-07-07 21:22:26.000 | 49 49 | 370 370 | 2005-07-16 00:59:26.000 | 2 2 | 2020-12-23 07:16:22 |
| 6714 | 2005-07-12 13:29:06.000 | 1947 1947 | 370 370 | 2005-07-18 16:02:06.000 | 2 2 | 2020-12-23 07:16:55 |
| 6968 | 2005-07-27 00:16:45.000 | 1662 1662 | 370 370 | 2005-07-30 23:16:45.000 | 2 2 | 2020-12-23 07:16:59 |
| 7152 | 2005-07-27 07:15:01.000 | 2338 2338 | 370 370 | 2005-08-05 04:50:01.000 | 1 1 | 2020-12-23 07:17:02 |
| 7226 | 2005-07-27 09:47:53.000 | 3507 3507 | 370 370 | 2005-08-01 08:24:53.000 | 1 1 | 2020-12-23 07:17:03 |
| 7797 | 2005-07-28 07:41:07.000 | 4180 4180 | 370 370 | 2005-07-31 04:13:07.000 | 1 1 | 2020-12-23 07:17:12 |
| 8258 | 2005-07-29 01:03:42.000 | 1379 1379 | 370 370 | 2005-08-04 22:08:42.000 | 2 2 | 2020-12-23 07:17:18 |
| 10095 | 2005-07-31 20:38:35.000 | 4062 4062 | 370 370 | 2005-08-02 02:33:35.000 | 1 1 | 2020-12-23 07:17:45 |
| 10336 | 2005-08-01 04:59:53.000 | 1091 1091 | 370 370 | 2005-08-03 08:05:53.000 | 2 2 | 2020-12-23 07:17:48 |
| 11540 | 2005-08-17 00:48:03.000 | 3385 3385 | 370 370 | 2005-08-25 03:46:03.000 | 1 1 | 2020-12-23 07:18:05 |
| 11925 | 2005-08-17 16:23:04.000 | 1441 1441 | 370 370 | 2005-08-21 11:38:04.000 | 1 1 | 2020-12-23 07:18:10 |
| 12339 | 2005-08-18 07:05:06.000 | 1600 1600 | 370 370 | 2005-08-19 02:27:06.000 | 2 2 | 2020-12-23 07:18:16 |
| 13039 | 2005-08-19 08:55:19.000 | 1952 1952 | 370 370 | 2005-08-20 07:39:19.000 | 2 2 | 2020-12-23 07:18:26 |
| 14602 | 2005-08-21 17:48:49.000 | 3771 3771 | 370 370 | 2005-08-28 21:38:49.000 | 1 1 | 2020-12-23 07:18:49 |
| 14786 | 2005-08-22 00:24:42.000 | 2959 2959 | 370 370 | 2005-08-25 19:36:42.000 | 1 1 | 2020-12-23 07:18:52 |
| 15368 | 2005-08-22 21:57:15.000 | 1130 1130 | 370 370 | 2005-08-29 16:28:15.000 | 1 1 | 2020-12-23 07:19:00 |
| 15626 | 2005-08-23 07:25:34.000 | 640 640 | 370 370 | 2005-08-28 11:01:34.000 | 1 1 | 2020-12-23 07:19:04 |
| 15982 | 2005-08-23 20:13:31.000 | 2920 2920 | 370 370 | 2005-09-01 21:51:31.000 | 2 2 | 2020-12-23 07:19:09 |
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) ;