rental
26 rows where customer_id = 303
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 |
|---|---|---|---|---|---|---|
| 265 | 2005-05-26 16:07:38.000 | 2276 2276 | 303 303 | 2005-06-01 14:20:38.000 | 1 1 | 2020-12-23 07:15:23 |
| 871 | 2005-05-30 05:01:30.000 | 4573 4573 | 303 303 | 2005-06-04 06:22:30.000 | 2 2 | 2020-12-23 07:15:31 |
| 1050 | 2005-05-31 07:01:27.000 | 726 726 | 303 303 | 2005-06-03 07:50:27.000 | 2 2 | 2020-12-23 07:15:34 |
| 1970 | 2005-06-17 09:23:16.000 | 1358 1358 | 303 303 | 2005-06-22 09:40:16.000 | 2 2 | 2020-12-23 07:15:46 |
| 2223 | 2005-06-18 03:27:03.000 | 4068 4068 | 303 303 | 2005-06-27 09:19:03.000 | 2 2 | 2020-12-23 07:15:50 |
| 3077 | 2005-06-20 15:05:18.000 | 1675 1675 | 303 303 | 2005-06-26 20:52:18.000 | 2 2 | 2020-12-23 07:16:02 |
| 3107 | 2005-06-20 17:26:05.000 | 4527 4527 | 303 303 | 2005-06-25 12:36:05.000 | 1 1 | 2020-12-23 07:16:02 |
| 5140 | 2005-07-09 08:04:59.000 | 947 947 | 303 303 | 2005-07-11 08:28:59.000 | 2 2 | 2020-12-23 07:16:33 |
| 6205 | 2005-07-11 12:31:24.000 | 3442 3442 | 303 303 | 2005-07-13 11:31:24.000 | 2 2 | 2020-12-23 07:16:48 |
| 6219 | 2005-07-11 13:18:37.000 | 38 38 | 303 303 | 2005-07-13 13:18:37.000 | 2 2 | 2020-12-23 07:16:48 |
| 6464 | 2005-07-12 01:16:40.000 | 3100 3100 | 303 303 | 2005-07-20 00:53:40.000 | 1 1 | 2020-12-23 07:16:52 |
| 7023 | 2005-07-27 02:32:44.000 | 4196 4196 | 303 303 | 2005-08-03 04:06:44.000 | 1 1 | 2020-12-23 07:17:00 |
| 7502 | 2005-07-27 20:19:08.000 | 3229 3229 | 303 303 | 2005-07-28 18:32:08.000 | 2 2 | 2020-12-23 07:17:07 |
| 8409 | 2005-07-29 06:41:22.000 | 4314 4314 | 303 303 | 2005-07-31 11:21:22.000 | 1 1 | 2020-12-23 07:17:21 |
| 8734 | 2005-07-29 18:28:15.000 | 2374 2374 | 303 303 | 2005-08-05 23:38:15.000 | 1 1 | 2020-12-23 07:17:25 |
| 8764 | 2005-07-29 19:39:04.000 | 2348 2348 | 303 303 | 2005-08-01 13:52:04.000 | 1 1 | 2020-12-23 07:17:26 |
| 10209 | 2005-08-01 00:56:47.000 | 2429 2429 | 303 303 | 2005-08-03 19:58:47.000 | 2 2 | 2020-12-23 07:17:46 |
| 11253 | 2005-08-02 13:42:44.000 | 2898 2898 | 303 303 | 2005-08-09 17:06:44.000 | 2 2 | 2020-12-23 07:18:01 |
| 11673 | 2005-08-17 05:54:15.000 | 823 823 | 303 303 | 2005-08-21 08:12:15.000 | 2 2 | 2020-12-23 07:18:07 |
| 11993 | 2005-08-17 18:27:49.000 | 295 295 | 303 303 | 2005-08-21 00:04:49.000 | 1 1 | 2020-12-23 07:18:11 |
| 12117 | 2005-08-17 23:11:12.000 | 4140 4140 | 303 303 | 2005-08-22 23:56:12.000 | 1 1 | 2020-12-23 07:18:13 |
| 12365 | 2005-08-18 07:55:09.000 | 4350 4350 | 303 303 | 2005-08-24 05:42:09.000 | 1 1 | 2020-12-23 07:18:16 |
| 12473 | 2005-08-18 11:59:44.000 | 1237 1237 | 303 303 | 2005-08-21 13:38:44.000 | 1 1 | 2020-12-23 07:18:18 |
| 14750 | 2005-08-21 23:09:32.000 | 918 918 | 303 303 | 2005-08-30 00:46:32.000 | 2 2 | 2020-12-23 07:18:51 |
| 14795 | 2005-08-22 00:40:22.000 | 1695 1695 | 303 303 | 2005-08-26 01:37:22.000 | 1 1 | 2020-12-23 07:18:52 |
| 15511 | 2005-08-23 02:55:42.000 | 3327 3327 | 303 303 | 2005-08-31 03:14:42.000 | 2 2 | 2020-12-23 07:19:02 |
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) ;