rental
29 rows where customer_id = 397
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 |
|---|---|---|---|---|---|---|
| 1002 | 2005-05-31 00:47:56.000 | 709 709 | 397 397 | 2005-06-06 19:51:56.000 | 1 1 | 2020-12-23 07:15:33 |
| 1769 | 2005-06-16 18:07:48.000 | 1229 1229 | 397 397 | 2005-06-22 12:39:48.000 | 1 1 | 2020-12-23 07:15:43 |
| 3027 | 2005-06-20 11:50:30.000 | 4028 4028 | 397 397 | 2005-06-25 15:58:30.000 | 2 2 | 2020-12-23 07:16:01 |
| 3489 | 2005-07-05 23:33:40.000 | 2936 2936 | 397 397 | 2005-07-15 02:15:40.000 | 2 2 | 2020-12-23 07:16:08 |
| 4036 | 2005-07-07 02:48:00.000 | 500 500 | 397 397 | 2005-07-07 22:46:00.000 | 1 1 | 2020-12-23 07:16:16 |
| 5103 | 2005-07-09 06:34:40.000 | 2390 2390 | 397 397 | 2005-07-10 03:44:40.000 | 2 2 | 2020-12-23 07:16:32 |
| 5598 | 2005-07-10 04:48:29.000 | 3412 3412 | 397 397 | 2005-07-18 10:33:29.000 | 2 2 | 2020-12-23 07:16:39 |
| 5763 | 2005-07-10 12:58:12.000 | 753 753 | 397 397 | 2005-07-14 08:52:12.000 | 1 1 | 2020-12-23 07:16:42 |
| 6014 | 2005-07-11 02:02:55.000 | 3748 3748 | 397 397 | 2005-07-12 23:49:55.000 | 1 1 | 2020-12-23 07:16:45 |
| 6266 | 2005-07-11 15:45:39.000 | 941 941 | 397 397 | 2005-07-15 18:29:39.000 | 1 1 | 2020-12-23 07:16:49 |
| 6471 | 2005-07-12 01:31:06.000 | 2253 2253 | 397 397 | 2005-07-13 05:26:06.000 | 1 1 | 2020-12-23 07:16:52 |
| 7356 | 2005-07-27 14:47:35.000 | 309 309 | 397 397 | 2005-07-28 18:10:35.000 | 2 2 | 2020-12-23 07:17:05 |
| 7892 | 2005-07-28 10:46:58.000 | 2717 2717 | 397 397 | 2005-07-30 16:03:58.000 | 1 1 | 2020-12-23 07:17:13 |
| 8103 | 2005-07-28 18:50:14.000 | 4472 4472 | 397 397 | 2005-08-04 16:53:14.000 | 1 1 | 2020-12-23 07:17:16 |
| 9495 | 2005-07-30 23:54:26.000 | 2128 2128 | 397 397 | 2005-08-01 22:02:26.000 | 2 2 | 2020-12-23 07:17:36 |
| 9608 | 2005-07-31 03:51:52.000 | 363 363 | 397 397 | 2005-08-06 05:38:52.000 | 2 2 | 2020-12-23 07:17:38 |
| 10534 | 2005-08-01 12:15:11.000 | 4354 4354 | 397 397 | 2005-08-04 17:06:11.000 | 1 1 | 2020-12-23 07:17:51 |
| 10598 | 2005-08-01 14:23:36.000 | 2341 2341 | 397 397 | 2005-08-10 14:07:36.000 | 2 2 | 2020-12-23 07:17:52 |
| 10785 | 2005-08-01 21:24:55.000 | 2282 2282 | 397 397 | 2005-08-06 17:47:55.000 | 1 1 | 2020-12-23 07:17:55 |
| 11511 | 2005-08-16 23:39:59.000 | 2127 2127 | 397 397 | 2005-08-18 18:04:59.000 | 1 1 | 2020-12-23 07:18:05 |
| 12223 | 2005-08-18 02:58:40.000 | 4142 4142 | 397 397 | 2005-08-23 23:30:40.000 | 2 2 | 2020-12-23 07:18:14 |
| 12276 | 2005-08-18 04:43:22.000 | 4491 4491 | 397 397 | 2005-08-22 01:49:22.000 | 2 2 | 2020-12-23 07:18:15 |
| 12329 | 2005-08-18 06:44:30.000 | 3127 3127 | 397 397 | 2005-08-25 04:05:30.000 | 1 1 | 2020-12-23 07:18:16 |
| 12700 | 2005-08-18 20:24:46.000 | 540 540 | 397 397 | 2005-08-23 21:50:46.000 | 1 1 | 2020-12-23 07:18:21 |
| 12726 | 2005-08-18 21:44:46.000 | 20 20 | 397 397 | 2005-08-19 21:58:46.000 | 2 2 | 2020-12-23 07:18:21 |
| 12772 | 2005-08-18 23:29:25.000 | 1179 1179 | 397 397 | 2005-08-23 20:32:25.000 | 1 1 | 2020-12-23 07:18:22 |
| 14100 | 2005-08-21 00:31:07.000 | 4295 4295 | 397 397 | 2005-08-25 05:31:07.000 | 2 2 | 2020-12-23 07:18:42 |
| 14790 | 2005-08-22 00:34:17.000 | 1002 1002 | 397 397 | 2005-08-31 02:27:17.000 | 1 1 | 2020-12-23 07:18:52 |
| 15083 | 2005-08-22 11:17:37.000 | 1691 1691 | 397 397 | 2005-08-28 06:27:37.000 | 2 2 | 2020-12-23 07:18:56 |
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) ;