rental
24 rows where customer_id = 43
This data as json, xlsx, CSV (advanced)
Suggested facets: rental_date, 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 |
|---|---|---|---|---|---|---|
| 123 | 2005-05-25 20:26:42.000 | 1795 1795 | 43 43 | 2005-05-26 19:41:42.000 | 1 1 | 2020-12-23 07:15:21 |
| 652 | 2005-05-28 20:08:47.000 | 1201 1201 | 43 43 | 2005-05-29 14:57:47.000 | 2 2 | 2020-12-23 07:15:28 |
| 1544 | 2005-06-16 01:28:22.000 | 269 269 | 43 43 | 2005-06-17 06:57:22.000 | 2 2 | 2020-12-23 07:15:40 |
| 3683 | 2005-07-06 09:25:56.000 | 3020 3020 | 43 43 | 2005-07-14 12:10:56.000 | 1 1 | 2020-12-23 07:16:11 |
| 4498 | 2005-07-08 02:07:50.000 | 4299 4299 | 43 43 | 2005-07-12 23:54:50.000 | 2 2 | 2020-12-23 07:16:23 |
| 5162 | 2005-07-09 09:00:11.000 | 2765 2765 | 43 43 | 2005-07-17 07:26:11.000 | 1 1 | 2020-12-23 07:16:33 |
| 5401 | 2005-07-09 19:59:10.000 | 431 431 | 43 43 | 2005-07-11 23:21:10.000 | 2 2 | 2020-12-23 07:16:36 |
| 5831 | 2005-07-10 16:34:02.000 | 830 830 | 43 43 | 2005-07-11 14:27:02.000 | 2 2 | 2020-12-23 07:16:43 |
| 5941 | 2005-07-10 22:40:47.000 | 492 492 | 43 43 | 2005-07-17 00:19:47.000 | 2 2 | 2020-12-23 07:16:44 |
| 6474 | 2005-07-12 01:36:46.000 | 310 310 | 43 43 | 2005-07-16 07:24:46.000 | 2 2 | 2020-12-23 07:16:52 |
| 6680 | 2005-07-12 12:01:56.000 | 2887 2887 | 43 43 | 2005-07-16 17:32:56.000 | 1 1 | 2020-12-23 07:16:55 |
| 7348 | 2005-07-27 14:32:32.000 | 3238 3238 | 43 43 | 2005-07-28 17:05:32.000 | 1 1 | 2020-12-23 07:17:05 |
| 7868 | 2005-07-28 10:08:55.000 | 3589 3589 | 43 43 | 2005-07-30 11:52:55.000 | 1 1 | 2020-12-23 07:17:13 |
| 8376 | 2005-07-29 05:25:32.000 | 3588 3588 | 43 43 | 2005-08-01 07:42:32.000 | 2 2 | 2020-12-23 07:17:20 |
| 9204 | 2005-07-30 12:43:58.000 | 4378 4378 | 43 43 | 2005-08-03 16:26:58.000 | 2 2 | 2020-12-23 07:17:32 |
| 11753 | 2005-08-17 09:11:52.000 | 2599 2599 | 43 43 | 2005-08-25 05:03:52.000 | 2 2 | 2020-12-23 07:18:08 |
| 14244 | 2005-08-21 05:29:55.000 | 1150 1150 | 43 43 | 2005-08-24 01:06:55.000 | 1 1 | 2020-12-23 07:18:44 |
| 14649 | 2005-08-21 19:19:21.000 | 4074 4074 | 43 43 | 2005-08-22 17:23:21.000 | 1 1 | 2020-12-23 07:18:50 |
| 14837 | 2005-08-22 01:54:52.000 | 2251 2251 | 43 43 | 2005-08-29 02:24:52.000 | 1 1 | 2020-12-23 07:18:52 |
| 15155 | 2005-08-22 14:27:46.000 | 2641 2641 | 43 43 | 2005-08-23 17:46:46.000 | 2 2 | 2020-12-23 07:18:57 |
| 15644 | 2006-02-14 15:16:03.000 | 3139 3139 | 43 43 | 2 2 | 2020-12-23 07:19:04 | |
| 15745 | 2006-02-14 15:16:03.000 | 2737 2737 | 43 43 | 1 1 | 2020-12-23 07:19:05 | |
| 15800 | 2005-08-23 14:23:44.000 | 963 963 | 43 43 | 2005-08-29 17:04:44.000 | 2 2 | 2020-12-23 07:19:06 |
| 15945 | 2005-08-23 18:51:41.000 | 3633 3633 | 43 43 | 2005-08-28 18:42:41.000 | 1 1 | 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) ;