rental
24 rows where customer_id = 243
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 |
|---|---|---|---|---|---|---|
| 188 | 2005-05-26 05:47:12.000 | 3342 3342 | 243 243 | 2005-05-26 23:48:12.000 | 1 1 | 2020-12-23 07:15:22 |
| 1405 | 2005-06-15 16:41:26.000 | 3184 3184 | 243 243 | 2005-06-21 18:16:26.000 | 1 1 | 2020-12-23 07:15:38 |
| 1452 | 2005-06-15 19:32:52.000 | 4348 4348 | 243 243 | 2005-06-16 13:45:52.000 | 1 1 | 2020-12-23 07:15:39 |
| 2757 | 2005-06-19 17:01:14.000 | 3814 3814 | 243 243 | 2005-06-28 11:38:14.000 | 1 1 | 2020-12-23 07:15:57 |
| 3854 | 2005-07-06 17:02:33.000 | 2054 2054 | 243 243 | 2005-07-12 17:32:33.000 | 2 2 | 2020-12-23 07:16:13 |
| 3965 | 2005-07-06 22:36:20.000 | 2863 2863 | 243 243 | 2005-07-09 17:45:20.000 | 1 1 | 2020-12-23 07:16:15 |
| 4831 | 2005-07-08 18:00:14.000 | 2739 2739 | 243 243 | 2005-07-12 15:54:14.000 | 2 2 | 2020-12-23 07:16:28 |
| 5502 | 2005-07-10 00:34:15.000 | 3712 3712 | 243 243 | 2005-07-11 21:44:15.000 | 1 1 | 2020-12-23 07:16:38 |
| 6038 | 2005-07-11 03:10:37.000 | 1555 1555 | 243 243 | 2005-07-19 05:14:37.000 | 2 2 | 2020-12-23 07:16:46 |
| 6820 | 2005-07-12 18:21:30.000 | 223 223 | 243 243 | 2005-07-14 15:14:30.000 | 1 1 | 2020-12-23 07:16:57 |
| 7022 | 2005-07-27 02:31:15.000 | 1711 1711 | 243 243 | 2005-07-29 02:52:15.000 | 1 1 | 2020-12-23 07:17:00 |
| 7165 | 2005-07-27 07:36:46.000 | 497 497 | 243 243 | 2005-07-30 09:22:46.000 | 2 2 | 2020-12-23 07:17:02 |
| 8834 | 2005-07-29 22:41:48.000 | 4477 4477 | 243 243 | 2005-08-05 03:21:48.000 | 2 2 | 2020-12-23 07:17:27 |
| 9035 | 2005-07-30 06:16:07.000 | 3785 3785 | 243 243 | 2005-08-06 09:22:07.000 | 1 1 | 2020-12-23 07:17:30 |
| 9514 | 2005-07-31 00:29:44.000 | 1892 1892 | 243 243 | 2005-08-02 23:49:44.000 | 1 1 | 2020-12-23 07:17:37 |
| 9675 | 2005-07-31 06:37:07.000 | 2523 2523 | 243 243 | 2005-08-03 07:03:07.000 | 1 1 | 2020-12-23 07:17:39 |
| 9988 | 2005-07-31 17:22:36.000 | 3844 3844 | 243 243 | 2005-08-07 18:35:36.000 | 2 2 | 2020-12-23 07:17:44 |
| 12209 | 2005-08-18 02:27:20.000 | 279 279 | 243 243 | 2005-08-21 00:41:20.000 | 2 2 | 2020-12-23 07:18:14 |
| 13291 | 2005-08-19 18:32:11.000 | 1631 1631 | 243 243 | 2005-08-20 18:22:11.000 | 2 2 | 2020-12-23 07:18:30 |
| 14033 | 2005-08-20 21:30:53.000 | 525 525 | 243 243 | 2005-08-23 01:45:53.000 | 2 2 | 2020-12-23 07:18:41 |
| 14108 | 2005-08-21 00:52:45.000 | 4339 4339 | 243 243 | 2005-08-21 19:35:45.000 | 2 2 | 2020-12-23 07:18:42 |
| 14272 | 2005-08-21 06:24:55.000 | 3908 3908 | 243 243 | 2005-08-28 02:25:55.000 | 1 1 | 2020-12-23 07:18:45 |
| 14581 | 2005-08-21 17:07:08.000 | 751 751 | 243 243 | 2005-08-26 16:02:08.000 | 1 1 | 2020-12-23 07:18:49 |
| 14705 | 2005-08-21 21:02:55.000 | 2493 2493 | 243 243 | 2005-08-25 20:20:55.000 | 2 2 | 2020-12-23 07:18:50 |
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) ;