rental
28 rows where customer_id = 338
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 |
|---|---|---|---|---|---|---|
| 675 | 2005-05-28 22:22:44.000 | 1273 1273 | 338 338 | 2005-06-01 02:57:44.000 | 2 2 | 2020-12-23 07:15:28 |
| 1510 | 2005-06-15 22:39:34.000 | 989 989 | 338 338 | 2005-06-24 19:21:34.000 | 2 2 | 2020-12-23 07:15:40 |
| 1807 | 2005-06-16 20:58:59.000 | 1174 1174 | 338 338 | 2005-06-20 21:31:59.000 | 2 2 | 2020-12-23 07:15:44 |
| 1952 | 2005-06-17 08:33:02.000 | 1823 1823 | 338 338 | 2005-06-21 14:00:02.000 | 2 2 | 2020-12-23 07:15:46 |
| 2148 | 2005-06-17 22:44:35.000 | 315 315 | 338 338 | 2005-06-26 19:43:35.000 | 1 1 | 2020-12-23 07:15:49 |
| 2179 | 2005-06-18 00:41:36.000 | 4334 4334 | 338 338 | 2005-06-19 02:17:36.000 | 1 1 | 2020-12-23 07:15:49 |
| 2495 | 2005-06-18 22:15:42.000 | 3826 3826 | 338 338 | 2005-06-21 23:21:42.000 | 1 1 | 2020-12-23 07:15:54 |
| 3458 | 2005-06-21 21:42:49.000 | 2136 2136 | 338 338 | 2005-06-29 01:26:49.000 | 1 1 | 2020-12-23 07:16:07 |
| 3516 | 2005-07-06 00:50:30.000 | 385 385 | 338 338 | 2005-07-09 19:12:30.000 | 2 2 | 2020-12-23 07:16:08 |
| 3772 | 2005-07-06 13:22:53.000 | 434 434 | 338 338 | 2005-07-10 11:54:53.000 | 2 2 | 2020-12-23 07:16:12 |
| 4104 | 2005-07-07 06:25:41.000 | 1066 1066 | 338 338 | 2005-07-13 04:18:41.000 | 2 2 | 2020-12-23 07:16:17 |
| 4779 | 2005-07-08 15:53:41.000 | 1321 1321 | 338 338 | 2005-07-15 20:30:41.000 | 1 1 | 2020-12-23 07:16:27 |
| 5309 | 2005-07-09 16:00:16.000 | 4026 4026 | 338 338 | 2005-07-17 17:56:16.000 | 1 1 | 2020-12-23 07:16:35 |
| 6236 | 2005-07-11 14:18:17.000 | 3813 3813 | 338 338 | 2005-07-14 08:47:17.000 | 2 2 | 2020-12-23 07:16:48 |
| 6360 | 2005-07-11 21:07:40.000 | 3075 3075 | 338 338 | 2005-07-16 15:11:40.000 | 1 1 | 2020-12-23 07:16:50 |
| 7584 | 2005-07-27 23:15:46.000 | 4390 4390 | 338 338 | 2005-08-03 02:18:46.000 | 2 2 | 2020-12-23 07:17:08 |
| 8766 | 2005-07-29 19:41:04.000 | 3888 3888 | 338 338 | 2005-08-02 00:41:04.000 | 2 2 | 2020-12-23 07:17:26 |
| 9485 | 2005-07-30 23:32:40.000 | 3722 3722 | 338 338 | 2005-08-08 17:44:40.000 | 1 1 | 2020-12-23 07:17:36 |
| 10791 | 2005-08-01 21:41:52.000 | 2061 2061 | 338 338 | 2005-08-04 03:28:52.000 | 2 2 | 2020-12-23 07:17:55 |
| 10897 | 2005-08-02 01:23:42.000 | 291 291 | 338 338 | 2005-08-03 23:27:42.000 | 1 1 | 2020-12-23 07:17:56 |
| 11064 | 2005-08-02 06:55:17.000 | 3012 3012 | 338 338 | 2005-08-06 03:29:17.000 | 1 1 | 2020-12-23 07:17:58 |
| 11671 | 2005-08-17 05:50:21.000 | 3569 3569 | 338 338 | 2005-08-20 03:43:21.000 | 1 1 | 2020-12-23 07:18:07 |
| 11719 | 2005-08-17 07:46:05.000 | 2054 2054 | 338 338 | 2005-08-23 08:52:05.000 | 1 1 | 2020-12-23 07:18:08 |
| 12167 | 2005-08-18 01:00:02.000 | 3085 3085 | 338 338 | 2005-08-21 00:04:02.000 | 2 2 | 2020-12-23 07:18:14 |
| 13284 | 2005-08-19 18:12:31.000 | 2128 2128 | 338 338 | 2005-08-25 21:26:31.000 | 2 2 | 2020-12-23 07:18:29 |
| 14619 | 2005-08-21 18:10:03.000 | 1589 1589 | 338 338 | 2005-08-23 13:40:03.000 | 2 2 | 2020-12-23 07:18:49 |
| 15105 | 2005-08-22 12:01:33.000 | 3965 3965 | 338 338 | 2005-08-26 14:29:33.000 | 2 2 | 2020-12-23 07:18:56 |
| 15173 | 2005-08-22 15:26:29.000 | 2585 2585 | 338 338 | 2005-08-29 14:03:29.000 | 1 1 | 2020-12-23 07:18:57 |
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) ;