rental
21 rows where customer_id = 545
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 |
|---|---|---|---|---|---|---|
| 248 | 2005-05-26 14:07:58.000 | 1913 1913 | 545 545 | 2005-05-31 14:03:58.000 | 2 2 | 2020-12-23 07:15:23 |
| 715 | 2005-05-29 04:22:41.000 | 2030 2030 | 545 545 | 2005-06-05 09:28:41.000 | 1 1 | 2020-12-23 07:15:29 |
| 2123 | 2005-06-17 20:48:30.000 | 2497 2497 | 545 545 | 2005-06-18 19:17:30.000 | 2 2 | 2020-12-23 07:15:49 |
| 3693 | 2005-07-06 09:56:09.000 | 2989 2989 | 545 545 | 2005-07-15 06:50:09.000 | 2 2 | 2020-12-23 07:16:11 |
| 3975 | 2005-07-06 23:00:09.000 | 4343 4343 | 545 545 | 2005-07-10 01:39:09.000 | 2 2 | 2020-12-23 07:16:15 |
| 4597 | 2005-07-08 06:43:42.000 | 3767 3767 | 545 545 | 2005-07-13 01:32:42.000 | 1 1 | 2020-12-23 07:16:25 |
| 5264 | 2005-07-09 14:11:28.000 | 3307 3307 | 545 545 | 2005-07-12 18:24:28.000 | 2 2 | 2020-12-23 07:16:34 |
| 7078 | 2005-07-27 04:16:37.000 | 4518 4518 | 545 545 | 2005-08-05 02:34:37.000 | 1 1 | 2020-12-23 07:17:01 |
| 8599 | 2005-07-29 12:58:52.000 | 1169 1169 | 545 545 | 2005-08-03 08:19:52.000 | 1 1 | 2020-12-23 07:17:23 |
| 8848 | 2005-07-29 23:20:58.000 | 2972 2972 | 545 545 | 2005-08-03 17:28:58.000 | 2 2 | 2020-12-23 07:17:27 |
| 9810 | 2005-07-31 11:22:41.000 | 2066 2066 | 545 545 | 2005-08-01 09:40:41.000 | 2 2 | 2020-12-23 07:17:41 |
| 9942 | 2005-07-31 15:35:43.000 | 4573 4573 | 545 545 | 2005-08-07 17:37:43.000 | 2 2 | 2020-12-23 07:17:43 |
| 10931 | 2005-08-02 02:44:59.000 | 3268 3268 | 545 545 | 2005-08-04 02:02:59.000 | 1 1 | 2020-12-23 07:17:57 |
| 11760 | 2005-08-17 09:44:22.000 | 626 626 | 545 545 | 2005-08-24 14:39:22.000 | 2 2 | 2020-12-23 07:18:08 |
| 12098 | 2005-08-17 22:38:31.000 | 534 534 | 545 545 | 2005-08-20 01:56:31.000 | 1 1 | 2020-12-23 07:18:13 |
| 12349 | 2005-08-18 07:23:42.000 | 4191 4191 | 545 545 | 2005-08-19 04:25:42.000 | 1 1 | 2020-12-23 07:18:16 |
| 12667 | 2005-08-18 19:11:45.000 | 104 104 | 545 545 | 2005-08-27 13:34:45.000 | 2 2 | 2020-12-23 07:18:20 |
| 12800 | 2005-08-19 00:27:11.000 | 257 257 | 545 545 | 2005-08-22 01:08:11.000 | 1 1 | 2020-12-23 07:18:22 |
| 13595 | 2005-08-20 05:54:27.000 | 673 673 | 545 545 | 2005-08-29 01:25:27.000 | 1 1 | 2020-12-23 07:18:34 |
| 15585 | 2005-08-23 05:55:22.000 | 1177 1177 | 545 545 | 2005-08-24 11:45:22.000 | 2 2 | 2020-12-23 07:19:03 |
| 15998 | 2005-08-23 20:41:09.000 | 1229 1229 | 545 545 | 2005-08-27 00:20:09.000 | 1 1 | 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) ;