rental
27 rows where customer_id = 45
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 |
|---|---|---|---|---|---|---|
| 277 | 2005-05-26 17:32:11.000 | 1409 1409 | 45 45 | 2005-05-28 22:54:11.000 | 1 1 | 2020-12-23 07:15:23 |
| 1806 | 2005-06-16 20:41:57.000 | 2053 2053 | 45 45 | 2005-06-18 19:25:57.000 | 2 2 | 2020-12-23 07:15:44 |
| 1979 | 2005-06-17 09:45:30.000 | 3470 3470 | 45 45 | 2005-06-20 10:52:30.000 | 1 1 | 2020-12-23 07:15:46 |
| 2722 | 2005-06-19 14:55:17.000 | 952 952 | 45 45 | 2005-06-25 13:11:17.000 | 2 2 | 2020-12-23 07:15:57 |
| 3391 | 2005-06-21 15:11:02.000 | 26 26 | 45 45 | 2005-06-25 14:12:02.000 | 1 1 | 2020-12-23 07:16:06 |
| 3444 | 2005-06-21 20:39:39.000 | 493 493 | 45 45 | 2005-06-25 23:44:39.000 | 2 2 | 2020-12-23 07:16:07 |
| 4843 | 2005-07-08 18:27:28.000 | 3640 3640 | 45 45 | 2005-07-15 00:26:28.000 | 2 2 | 2020-12-23 07:16:28 |
| 5181 | 2005-07-09 10:07:27.000 | 2569 2569 | 45 45 | 2005-07-17 10:18:27.000 | 2 2 | 2020-12-23 07:16:33 |
| 5405 | 2005-07-09 20:11:49.000 | 799 799 | 45 45 | 2005-07-18 18:37:49.000 | 2 2 | 2020-12-23 07:16:36 |
| 5637 | 2005-07-10 06:31:37.000 | 4436 4436 | 45 45 | 2005-07-17 01:16:37.000 | 1 1 | 2020-12-23 07:16:40 |
| 6001 | 2005-07-11 01:24:44.000 | 1779 1779 | 45 45 | 2005-07-11 22:55:44.000 | 1 1 | 2020-12-23 07:16:45 |
| 6002 | 2005-07-11 01:27:49.000 | 4422 4422 | 45 45 | 2005-07-12 06:02:49.000 | 1 1 | 2020-12-23 07:16:45 |
| 6966 | 2005-07-27 00:15:35.000 | 1577 1577 | 45 45 | 2005-08-05 03:04:35.000 | 2 2 | 2020-12-23 07:16:59 |
| 7436 | 2005-07-27 17:39:12.000 | 299 299 | 45 45 | 2005-08-01 12:40:12.000 | 2 2 | 2020-12-23 07:17:06 |
| 7961 | 2005-07-28 13:47:21.000 | 3284 3284 | 45 45 | 2005-08-01 09:33:21.000 | 1 1 | 2020-12-23 07:17:14 |
| 10507 | 2005-08-01 11:22:20.000 | 367 367 | 45 45 | 2005-08-04 13:18:20.000 | 2 2 | 2020-12-23 07:17:51 |
| 10878 | 2005-08-02 00:33:12.000 | 3511 3511 | 45 45 | 2005-08-07 06:02:12.000 | 1 1 | 2020-12-23 07:17:56 |
| 11004 | 2005-08-02 05:04:18.000 | 200 200 | 45 45 | 2005-08-11 00:03:18.000 | 2 2 | 2020-12-23 07:17:58 |
| 11029 | 2005-08-02 05:51:10.000 | 1023 1023 | 45 45 | 2005-08-05 04:15:10.000 | 1 1 | 2020-12-23 07:17:58 |
| 11483 | 2005-08-02 22:28:22.000 | 1586 1586 | 45 45 | 2005-08-11 18:06:22.000 | 1 1 | 2020-12-23 07:18:04 |
| 11488 | 2005-08-02 22:35:15.000 | 2520 2520 | 45 45 | 2005-08-09 00:28:15.000 | 2 2 | 2020-12-23 07:18:05 |
| 11725 | 2005-08-17 08:09:00.000 | 519 519 | 45 45 | 2005-08-18 09:50:00.000 | 1 1 | 2020-12-23 07:18:08 |
| 13340 | 2005-08-19 20:18:39.000 | 4358 4358 | 45 45 | 2005-08-28 21:06:39.000 | 2 2 | 2020-12-23 07:18:30 |
| 13394 | 2005-08-19 22:05:19.000 | 2597 2597 | 45 45 | 2005-08-21 23:53:19.000 | 1 1 | 2020-12-23 07:18:31 |
| 14576 | 2005-08-21 16:52:03.000 | 1189 1189 | 45 45 | 2005-08-28 19:43:03.000 | 2 2 | 2020-12-23 07:18:49 |
| 15812 | 2005-08-23 14:47:26.000 | 4457 4457 | 45 45 | 2005-09-01 10:51:26.000 | 2 2 | 2020-12-23 07:19:06 |
| 16037 | 2005-08-23 22:13:04.000 | 341 341 | 45 45 | 2005-09-01 02:48:04.000 | 2 2 | 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) ;