rental
18 rows where customer_id = 124
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 |
|---|---|---|---|---|---|---|
| 775 | 2005-05-29 13:23:26.000 | 1197 1197 | 124 124 | 2005-05-30 07:53:26.000 | 2 2 | 2020-12-23 07:15:30 |
| 1039 | 2005-05-31 05:32:29.000 | 2479 2479 | 124 124 | 2005-06-01 06:04:29.000 | 2 2 | 2020-12-23 07:15:33 |
| 1057 | 2005-05-31 07:58:06.000 | 497 497 | 124 124 | 2005-06-06 03:21:06.000 | 1 1 | 2020-12-23 07:15:34 |
| 1130 | 2005-05-31 18:13:57.000 | 3186 3186 | 124 124 | 2005-06-06 22:50:57.000 | 2 2 | 2020-12-23 07:15:35 |
| 2336 | 2005-06-18 11:00:05.000 | 3888 3888 | 124 124 | 2005-06-25 06:02:05.000 | 2 2 | 2020-12-23 07:15:52 |
| 4341 | 2005-07-07 18:44:23.000 | 4523 4523 | 124 124 | 2005-07-15 18:13:23.000 | 1 1 | 2020-12-23 07:16:21 |
| 4709 | 2005-07-08 12:04:34.000 | 3964 3964 | 124 124 | 2005-07-15 06:48:34.000 | 1 1 | 2020-12-23 07:16:26 |
| 5566 | 2005-07-10 03:30:17.000 | 1343 1343 | 124 124 | 2005-07-13 06:32:17.000 | 1 1 | 2020-12-23 07:16:39 |
| 6411 | 2005-07-11 23:10:50.000 | 4347 4347 | 124 124 | 2005-07-19 17:15:50.000 | 1 1 | 2020-12-23 07:16:51 |
| 7519 | 2005-07-27 21:01:41.000 | 4009 4009 | 124 124 | 2005-08-05 19:15:41.000 | 1 1 | 2020-12-23 07:17:07 |
| 7700 | 2005-07-28 03:54:14.000 | 3546 3546 | 124 124 | 2005-08-05 06:20:14.000 | 2 2 | 2020-12-23 07:17:10 |
| 8524 | 2005-07-29 10:20:07.000 | 2110 2110 | 124 124 | 2005-08-03 04:30:07.000 | 1 1 | 2020-12-23 07:17:22 |
| 9986 | 2005-07-31 17:16:50.000 | 1242 1242 | 124 124 | 2005-08-05 18:34:50.000 | 2 2 | 2020-12-23 07:17:44 |
| 11493 | 2005-08-02 22:47:00.000 | 3375 3375 | 124 124 | 2005-08-10 20:53:00.000 | 2 2 | 2020-12-23 07:18:05 |
| 12835 | 2005-08-19 01:47:45.000 | 1477 1477 | 124 124 | 2005-08-26 00:58:45.000 | 2 2 | 2020-12-23 07:18:23 |
| 14737 | 2005-08-21 22:27:11.000 | 1842 1842 | 124 124 | 2005-08-25 18:51:11.000 | 2 2 | 2020-12-23 07:18:51 |
| 15266 | 2005-08-22 18:37:24.000 | 1870 1870 | 124 124 | 2005-08-23 17:34:24.000 | 2 2 | 2020-12-23 07:18:59 |
| 16023 | 2005-08-23 21:45:02.000 | 2347 2347 | 124 124 | 2005-08-24 21:28:02.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) ;