rental
19 rows where customer_id = 117
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 |
|---|---|---|---|---|---|---|
| 700 | 2005-05-29 02:18:54.000 | 500 500 | 117 117 | 2005-05-30 05:54:54.000 | 1 1 | 2020-12-23 07:15:29 |
| 1114 | 2005-05-31 16:00:33.000 | 2287 2287 | 117 117 | 2005-06-01 19:05:33.000 | 1 1 | 2020-12-23 07:15:35 |
| 1755 | 2005-06-16 17:18:44.000 | 1721 1721 | 117 117 | 2005-06-17 16:54:44.000 | 1 1 | 2020-12-23 07:15:43 |
| 3218 | 2005-06-21 01:38:09.000 | 1828 1828 | 117 117 | 2005-06-23 02:00:09.000 | 1 1 | 2020-12-23 07:16:04 |
| 5506 | 2005-07-10 00:45:48.000 | 2432 2432 | 117 117 | 2005-07-18 20:35:48.000 | 2 2 | 2020-12-23 07:16:38 |
| 5673 | 2005-07-10 08:21:54.000 | 4018 4018 | 117 117 | 2005-07-11 05:54:54.000 | 2 2 | 2020-12-23 07:16:40 |
| 6093 | 2005-07-11 05:52:50.000 | 1868 1868 | 117 117 | 2005-07-20 11:45:50.000 | 1 1 | 2020-12-23 07:16:46 |
| 6449 | 2005-07-12 00:48:58.000 | 4395 4395 | 117 117 | 2005-07-21 02:57:58.000 | 1 1 | 2020-12-23 07:16:51 |
| 8687 | 2005-07-29 16:19:17.000 | 222 222 | 117 117 | 2005-08-01 15:28:17.000 | 1 1 | 2020-12-23 07:17:25 |
| 10556 | 2005-08-01 12:58:42.000 | 144 144 | 117 117 | 2005-08-03 07:18:42.000 | 2 2 | 2020-12-23 07:17:52 |
| 10558 | 2005-08-01 13:00:20.000 | 4399 4399 | 117 117 | 2005-08-05 16:31:20.000 | 1 1 | 2020-12-23 07:17:52 |
| 11467 | 2005-08-02 21:47:07.000 | 246 246 | 117 117 | 2005-08-09 00:50:07.000 | 1 1 | 2020-12-23 07:18:04 |
| 12143 | 2005-08-18 00:06:26.000 | 2876 2876 | 117 117 | 2005-08-24 02:45:26.000 | 2 2 | 2020-12-23 07:18:13 |
| 12337 | 2005-08-18 07:02:24.000 | 4221 4221 | 117 117 | 2005-08-20 10:11:24.000 | 1 1 | 2020-12-23 07:18:16 |
| 12575 | 2005-08-18 15:37:42.000 | 3441 3441 | 117 117 | 2005-08-25 19:17:42.000 | 1 1 | 2020-12-23 07:18:19 |
| 12618 | 2005-08-18 17:24:02.000 | 302 302 | 117 117 | 2005-08-19 15:22:02.000 | 1 1 | 2020-12-23 07:18:19 |
| 14784 | 2005-08-22 00:23:13.000 | 441 441 | 117 117 | 2005-08-28 03:42:13.000 | 1 1 | 2020-12-23 07:18:52 |
| 14854 | 2005-08-22 02:26:47.000 | 1989 1989 | 117 117 | 2005-08-23 05:53:47.000 | 1 1 | 2020-12-23 07:18:53 |
| 15432 | 2005-08-23 00:26:52.000 | 1896 1896 | 117 117 | 2005-08-27 06:11:52.000 | 1 1 | 2020-12-23 07:19:01 |
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) ;