rental
19 rows where customer_id = 458
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 |
|---|---|---|---|---|---|---|
| 2629 | 2005-06-19 08:42:12.000 | 1810 1810 | 458 458 | 2005-06-28 03:38:12.000 | 2 2 | 2020-12-23 07:15:56 |
| 3322 | 2005-06-21 08:42:37.000 | 4324 4324 | 458 458 | 2005-06-22 13:17:37.000 | 1 1 | 2020-12-23 07:16:05 |
| 4525 | 2005-07-08 03:15:00.000 | 3631 3631 | 458 458 | 2005-07-11 04:53:00.000 | 1 1 | 2020-12-23 07:16:23 |
| 5412 | 2005-07-09 20:23:52.000 | 3174 3174 | 458 458 | 2005-07-18 18:40:52.000 | 1 1 | 2020-12-23 07:16:37 |
| 5572 | 2005-07-10 03:49:00.000 | 2709 2709 | 458 458 | 2005-07-14 01:25:00.000 | 1 1 | 2020-12-23 07:16:39 |
| 6250 | 2005-07-11 15:02:04.000 | 4087 4087 | 458 458 | 2005-07-17 10:54:04.000 | 1 1 | 2020-12-23 07:16:48 |
| 6431 | 2005-07-12 00:03:57.000 | 3471 3471 | 458 458 | 2005-07-20 03:47:57.000 | 1 1 | 2020-12-23 07:16:51 |
| 6595 | 2005-07-12 07:25:48.000 | 1286 1286 | 458 458 | 2005-07-20 02:24:48.000 | 2 2 | 2020-12-23 07:16:54 |
| 6654 | 2005-07-12 11:06:28.000 | 2870 2870 | 458 458 | 2005-07-20 10:27:28.000 | 1 1 | 2020-12-23 07:16:54 |
| 7923 | 2005-07-28 12:08:29.000 | 2273 2273 | 458 458 | 2005-08-04 12:30:29.000 | 1 1 | 2020-12-23 07:17:13 |
| 8158 | 2005-07-28 21:08:46.000 | 4327 4327 | 458 458 | 2005-08-01 21:50:46.000 | 2 2 | 2020-12-23 07:17:17 |
| 11138 | 2005-08-02 09:26:16.000 | 4250 4250 | 458 458 | 2005-08-11 07:50:16.000 | 2 2 | 2020-12-23 07:17:59 |
| 11975 | 2005-08-17 17:58:39.000 | 3843 3843 | 458 458 | 2005-08-20 19:11:39.000 | 2 2 | 2020-12-23 07:18:11 |
| 12768 | 2005-08-18 23:26:11.000 | 1993 1993 | 458 458 | 2005-08-19 20:31:11.000 | 2 2 | 2020-12-23 07:18:22 |
| 13259 | 2005-08-19 17:08:53.000 | 2518 2518 | 458 458 | 2005-08-23 14:14:53.000 | 1 1 | 2020-12-23 07:18:29 |
| 13487 | 2005-08-20 01:27:05.000 | 2609 2609 | 458 458 | 2005-08-24 00:41:05.000 | 2 2 | 2020-12-23 07:18:33 |
| 13571 | 2005-08-20 05:05:14.000 | 1251 1251 | 458 458 | 2005-08-25 03:59:14.000 | 2 2 | 2020-12-23 07:18:34 |
| 14428 | 2005-08-21 11:27:07.000 | 1614 1614 | 458 458 | 2005-08-29 09:50:07.000 | 1 1 | 2020-12-23 07:18:47 |
| 15604 | 2005-08-23 06:44:19.000 | 4000 4000 | 458 458 | 2005-08-29 07:17:19.000 | 1 1 | 2020-12-23 07:19:03 |
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) ;