rental
21 rows where customer_id = 496
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 |
|---|---|---|---|---|---|---|
| 322 | 2005-05-27 00:47:35.000 | 4556 4556 | 496 496 | 2005-06-02 00:32:35.000 | 1 1 | 2020-12-23 07:15:24 |
| 966 | 2005-05-30 19:00:37.000 | 1294 1294 | 496 496 | 2005-05-31 23:51:37.000 | 1 1 | 2020-12-23 07:15:33 |
| 2567 | 2005-06-19 04:04:46.000 | 216 216 | 496 496 | 2005-06-19 23:39:46.000 | 2 2 | 2020-12-23 07:15:55 |
| 3569 | 2005-07-06 03:17:23.000 | 1929 1929 | 496 496 | 2005-07-14 03:58:23.000 | 1 1 | 2020-12-23 07:16:09 |
| 4070 | 2005-07-07 04:37:09.000 | 2926 2926 | 496 496 | 2005-07-08 04:19:09.000 | 2 2 | 2020-12-23 07:16:17 |
| 4261 | 2005-07-07 14:23:56.000 | 1405 1405 | 496 496 | 2005-07-13 15:26:56.000 | 1 1 | 2020-12-23 07:16:19 |
| 4269 | 2005-07-07 14:38:33.000 | 415 415 | 496 496 | 2005-07-09 10:27:33.000 | 1 1 | 2020-12-23 07:16:20 |
| 5559 | 2005-07-10 03:13:07.000 | 4122 4122 | 496 496 | 2005-07-18 08:33:07.000 | 1 1 | 2020-12-23 07:16:39 |
| 5949 | 2005-07-10 23:13:00.000 | 4397 4397 | 496 496 | 2005-07-14 01:10:00.000 | 2 2 | 2020-12-23 07:16:44 |
| 7133 | 2005-07-27 06:29:23.000 | 2995 2995 | 496 496 | 2005-07-29 03:20:23.000 | 2 2 | 2020-12-23 07:17:02 |
| 8221 | 2005-07-28 23:47:19.000 | 3138 3138 | 496 496 | 2005-08-02 20:42:19.000 | 1 1 | 2020-12-23 07:17:18 |
| 11060 | 2005-08-02 06:48:18.000 | 3395 3395 | 496 496 | 2005-08-10 11:49:18.000 | 1 1 | 2020-12-23 07:17:58 |
| 11448 | 2005-08-02 20:44:33.000 | 1185 1185 | 496 496 | 2005-08-05 22:58:33.000 | 2 2 | 2020-12-23 07:18:04 |
| 11893 | 2005-08-17 15:13:29.000 | 2321 2321 | 496 496 | 2005-08-25 11:09:29.000 | 1 1 | 2020-12-23 07:18:10 |
| 12605 | 2005-08-18 16:59:37.000 | 1359 1359 | 496 496 | 2005-08-20 18:09:37.000 | 1 1 | 2020-12-23 07:18:19 |
| 13182 | 2006-02-14 15:16:03.000 | 364 364 | 496 496 | 2 2 | 2020-12-23 07:18:28 | |
| 13569 | 2005-08-20 05:02:59.000 | 1934 1934 | 496 496 | 2005-08-28 00:51:59.000 | 1 1 | 2020-12-23 07:18:34 |
| 14013 | 2005-08-20 20:42:50.000 | 3941 3941 | 496 496 | 2005-08-25 21:37:50.000 | 2 2 | 2020-12-23 07:18:41 |
| 14332 | 2005-08-21 08:30:43.000 | 1388 1388 | 496 496 | 2005-08-29 10:51:43.000 | 1 1 | 2020-12-23 07:18:45 |
| 14348 | 2005-08-21 08:54:26.000 | 885 885 | 496 496 | 2005-08-24 02:55:26.000 | 2 2 | 2020-12-23 07:18:46 |
| 15750 | 2005-08-23 12:36:05.000 | 4474 4474 | 496 496 | 2005-08-24 17:40:05.000 | 2 2 | 2020-12-23 07:19:06 |
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) ;