rental
26 rows where customer_id = 389
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 |
|---|---|---|---|---|---|---|
| 998 | 2005-05-31 00:16:57.000 | 3395 3395 | 389 389 | 2005-06-01 22:41:57.000 | 1 1 | 2020-12-23 07:15:33 |
| 1763 | 2005-06-16 17:51:01.000 | 1941 1941 | 389 389 | 2005-06-20 17:27:01.000 | 1 1 | 2020-12-23 07:15:43 |
| 1946 | 2005-06-17 07:58:39.000 | 2335 2335 | 389 389 | 2005-06-25 06:49:39.000 | 2 2 | 2020-12-23 07:15:46 |
| 2552 | 2005-06-19 03:01:29.000 | 664 664 | 389 389 | 2005-06-28 04:13:29.000 | 1 1 | 2020-12-23 07:15:55 |
| 3527 | 2005-07-06 01:11:08.000 | 4537 4537 | 389 389 | 2005-07-08 01:21:08.000 | 1 1 | 2020-12-23 07:16:08 |
| 4443 | 2005-07-07 23:05:53.000 | 72 72 | 389 389 | 2005-07-16 01:46:53.000 | 1 1 | 2020-12-23 07:16:22 |
| 5249 | 2005-07-09 13:33:53.000 | 1950 1950 | 389 389 | 2005-07-11 12:55:53.000 | 2 2 | 2020-12-23 07:16:34 |
| 5626 | 2005-07-10 05:49:35.000 | 3029 3029 | 389 389 | 2005-07-15 08:05:35.000 | 1 1 | 2020-12-23 07:16:40 |
| 6104 | 2005-07-11 07:01:35.000 | 3531 3531 | 389 389 | 2005-07-17 02:29:35.000 | 1 1 | 2020-12-23 07:16:46 |
| 6600 | 2005-07-12 07:41:48.000 | 3315 3315 | 389 389 | 2005-07-18 12:36:48.000 | 2 2 | 2020-12-23 07:16:54 |
| 7029 | 2005-07-27 02:57:43.000 | 2862 2862 | 389 389 | 2005-07-30 08:24:43.000 | 1 1 | 2020-12-23 07:17:00 |
| 7896 | 2005-07-28 11:00:58.000 | 3561 3561 | 389 389 | 2005-08-04 14:30:58.000 | 2 2 | 2020-12-23 07:17:13 |
| 7977 | 2005-07-28 14:15:54.000 | 3162 3162 | 389 389 | 2005-08-01 18:58:54.000 | 2 2 | 2020-12-23 07:17:14 |
| 8338 | 2005-07-29 04:40:39.000 | 2257 2257 | 389 389 | 2005-08-07 04:40:39.000 | 2 2 | 2020-12-23 07:17:19 |
| 8887 | 2005-07-30 00:36:54.000 | 4119 4119 | 389 389 | 2005-08-04 19:07:54.000 | 1 1 | 2020-12-23 07:17:27 |
| 10217 | 2005-08-01 01:07:27.000 | 1193 1193 | 389 389 | 2005-08-09 00:42:27.000 | 1 1 | 2020-12-23 07:17:47 |
| 10949 | 2005-08-02 03:24:04.000 | 2309 2309 | 389 389 | 2005-08-06 08:36:04.000 | 2 2 | 2020-12-23 07:17:57 |
| 11348 | 2005-08-02 17:18:38.000 | 1704 1704 | 389 389 | 2005-08-06 16:11:38.000 | 2 2 | 2020-12-23 07:18:02 |
| 11441 | 2005-08-02 20:25:41.000 | 1027 1027 | 389 389 | 2005-08-05 00:05:41.000 | 2 2 | 2020-12-23 07:18:04 |
| 11944 | 2005-08-17 17:02:42.000 | 27 27 | 389 389 | 2005-08-21 16:40:42.000 | 2 2 | 2020-12-23 07:18:11 |
| 12069 | 2005-08-17 21:39:40.000 | 631 631 | 389 389 | 2005-08-22 01:12:40.000 | 2 2 | 2020-12-23 07:18:12 |
| 14493 | 2005-08-21 14:01:44.000 | 2590 2590 | 389 389 | 2005-08-28 17:20:44.000 | 1 1 | 2020-12-23 07:18:48 |
| 14578 | 2005-08-21 16:53:38.000 | 3141 3141 | 389 389 | 2005-08-28 20:36:38.000 | 2 2 | 2020-12-23 07:18:49 |
| 14777 | 2005-08-21 23:55:50.000 | 237 237 | 389 389 | 2005-08-28 04:31:50.000 | 1 1 | 2020-12-23 07:18:51 |
| 15462 | 2005-08-23 01:14:01.000 | 3267 3267 | 389 389 | 2005-08-29 19:52:01.000 | 1 1 | 2020-12-23 07:19:02 |
| 16011 | 2005-08-23 21:11:33.000 | 1093 1093 | 389 389 | 2005-08-31 17:51:33.000 | 1 1 | 2020-12-23 07:19:09 |
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) ;