rental
20 rows where customer_id = 162
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 |
|---|---|---|---|---|---|---|
| 285 | 2005-05-26 19:41:40.000 | 2486 2486 | 162 162 | 2005-05-31 16:58:40.000 | 2 2 | 2020-12-23 07:15:23 |
| 501 | 2005-05-28 01:09:36.000 | 601 601 | 162 162 | 2005-05-30 06:14:36.000 | 2 2 | 2020-12-23 07:15:26 |
| 688 | 2005-05-29 00:45:24.000 | 4135 4135 | 162 162 | 2005-06-02 01:30:24.000 | 1 1 | 2020-12-23 07:15:29 |
| 1339 | 2005-06-15 12:21:56.000 | 424 424 | 162 162 | 2005-06-19 07:46:56.000 | 1 1 | 2020-12-23 07:15:37 |
| 2366 | 2005-06-18 13:46:39.000 | 1413 1413 | 162 162 | 2005-06-23 18:49:39.000 | 2 2 | 2020-12-23 07:15:52 |
| 2547 | 2005-06-19 02:44:17.000 | 4560 4560 | 162 162 | 2005-06-24 08:01:17.000 | 2 2 | 2020-12-23 07:15:55 |
| 3040 | 2005-06-20 12:34:13.000 | 2568 2568 | 162 162 | 2005-06-21 12:33:13.000 | 1 1 | 2020-12-23 07:16:01 |
| 3180 | 2005-06-20 22:48:44.000 | 3997 3997 | 162 162 | 2005-06-21 21:25:44.000 | 1 1 | 2020-12-23 07:16:03 |
| 4982 | 2005-07-09 00:30:52.000 | 249 249 | 162 162 | 2005-07-15 23:50:52.000 | 1 1 | 2020-12-23 07:16:30 |
| 8478 | 2005-07-29 08:40:36.000 | 3742 3742 | 162 162 | 2005-08-01 10:23:36.000 | 1 1 | 2020-12-23 07:17:22 |
| 8582 | 2005-07-29 12:03:27.000 | 841 841 | 162 162 | 2005-08-03 07:02:27.000 | 1 1 | 2020-12-23 07:17:23 |
| 9167 | 2005-07-30 11:30:37.000 | 1785 1785 | 162 162 | 2005-08-08 17:13:37.000 | 1 1 | 2020-12-23 07:17:32 |
| 9726 | 2005-07-31 08:37:07.000 | 1701 1701 | 162 162 | 2005-08-09 06:09:07.000 | 1 1 | 2020-12-23 07:17:40 |
| 9775 | 2005-07-31 10:00:00.000 | 2818 2818 | 162 162 | 2005-08-01 08:57:00.000 | 2 2 | 2020-12-23 07:17:41 |
| 10093 | 2005-07-31 20:30:32.000 | 3943 3943 | 162 162 | 2005-08-04 00:04:32.000 | 2 2 | 2020-12-23 07:17:45 |
| 11012 | 2005-08-02 05:09:42.000 | 542 542 | 162 162 | 2005-08-05 07:22:42.000 | 2 2 | 2020-12-23 07:17:58 |
| 13288 | 2005-08-19 18:30:10.000 | 3558 3558 | 162 162 | 2005-08-20 19:20:10.000 | 2 2 | 2020-12-23 07:18:30 |
| 14220 | 2006-02-14 15:16:03.000 | 2618 2618 | 162 162 | 1 1 | 2020-12-23 07:18:44 | |
| 14301 | 2005-08-21 07:19:48.000 | 283 283 | 162 162 | 2005-08-28 02:06:48.000 | 1 1 | 2020-12-23 07:18:45 |
| 15332 | 2005-08-22 20:41:53.000 | 3368 3368 | 162 162 | 2005-08-24 01:45:53.000 | 1 1 | 2020-12-23 07:19:00 |
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) ;