rental
24 rows where customer_id = 585
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 |
|---|---|---|---|---|---|---|
| 1344 | 2005-06-15 12:29:41.000 | 1625 1625 | 585 585 | 2005-06-22 12:45:41.000 | 2 2 | 2020-12-23 07:15:37 |
| 1346 | 2005-06-15 12:39:52.000 | 4540 4540 | 585 585 | 2005-06-24 17:43:52.000 | 1 1 | 2020-12-23 07:15:38 |
| 2674 | 2005-06-19 11:47:59.000 | 3744 3744 | 585 585 | 2005-06-20 08:09:59.000 | 1 1 | 2020-12-23 07:15:56 |
| 2930 | 2005-06-20 04:50:29.000 | 3615 3615 | 585 585 | 2005-06-28 06:00:29.000 | 2 2 | 2020-12-23 07:16:00 |
| 4156 | 2005-07-07 09:03:51.000 | 1259 1259 | 585 585 | 2005-07-12 09:46:51.000 | 2 2 | 2020-12-23 07:16:18 |
| 4579 | 2005-07-08 06:01:56.000 | 4290 4290 | 585 585 | 2005-07-13 11:24:56.000 | 1 1 | 2020-12-23 07:16:24 |
| 4684 | 2005-07-08 10:41:06.000 | 503 503 | 585 585 | 2005-07-17 10:35:06.000 | 1 1 | 2020-12-23 07:16:26 |
| 5284 | 2005-07-09 15:08:21.000 | 1036 1036 | 585 585 | 2005-07-16 09:53:21.000 | 2 2 | 2020-12-23 07:16:35 |
| 5950 | 2005-07-10 23:13:45.000 | 4319 4319 | 585 585 | 2005-07-13 02:35:45.000 | 1 1 | 2020-12-23 07:16:44 |
| 6733 | 2005-07-12 14:04:01.000 | 1476 1476 | 585 585 | 2005-07-21 18:57:01.000 | 2 2 | 2020-12-23 07:16:56 |
| 7131 | 2005-07-27 06:25:06.000 | 2832 2832 | 585 585 | 2005-07-31 09:07:06.000 | 1 1 | 2020-12-23 07:17:02 |
| 7384 | 2005-07-27 15:49:45.000 | 3573 3573 | 585 585 | 2005-08-04 15:17:45.000 | 1 1 | 2020-12-23 07:17:05 |
| 7409 | 2005-07-27 16:38:24.000 | 2352 2352 | 585 585 | 2005-07-30 18:06:24.000 | 1 1 | 2020-12-23 07:17:06 |
| 8353 | 2005-07-29 04:52:10.000 | 26 26 | 585 585 | 2005-07-30 04:01:10.000 | 1 1 | 2020-12-23 07:17:20 |
| 9407 | 2005-07-30 20:25:24.000 | 2594 2594 | 585 585 | 2005-08-08 22:51:24.000 | 2 2 | 2020-12-23 07:17:35 |
| 9590 | 2005-07-31 03:17:16.000 | 2293 2293 | 585 585 | 2005-08-08 04:24:16.000 | 1 1 | 2020-12-23 07:17:38 |
| 9860 | 2005-07-31 13:03:24.000 | 3266 3266 | 585 585 | 2005-08-07 07:28:24.000 | 2 2 | 2020-12-23 07:17:42 |
| 10573 | 2005-08-01 13:27:24.000 | 4252 4252 | 585 585 | 2005-08-04 15:09:24.000 | 2 2 | 2020-12-23 07:17:52 |
| 11285 | 2005-08-02 14:44:02.000 | 3849 3849 | 585 585 | 2005-08-11 16:45:02.000 | 2 2 | 2020-12-23 07:18:01 |
| 13593 | 2005-08-20 05:50:52.000 | 261 261 | 585 585 | 2005-08-27 05:28:52.000 | 2 2 | 2020-12-23 07:18:34 |
| 13939 | 2005-08-20 17:28:01.000 | 2700 2700 | 585 585 | 2005-08-23 14:40:01.000 | 2 2 | 2020-12-23 07:18:40 |
| 14604 | 2006-02-14 15:16:03.000 | 1024 1024 | 585 585 | 2 2 | 2020-12-23 07:18:49 | |
| 15804 | 2005-08-23 14:29:16.000 | 3338 3338 | 585 585 | 2005-08-26 08:41:16.000 | 1 1 | 2020-12-23 07:19:06 |
| 15896 | 2005-08-23 17:09:56.000 | 528 528 | 585 585 | 2005-08-31 14:51:56.000 | 2 2 | 2020-12-23 07:19:08 |
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) ;