rental
21 rows where customer_id = 165
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 |
|---|---|---|---|---|---|---|
| 338 | 2005-05-27 03:42:52.000 | 2596 2596 | 165 165 | 2005-06-01 05:23:52.000 | 2 2 | 2020-12-23 07:15:24 |
| 2013 | 2005-06-17 12:03:01.000 | 3256 3256 | 165 165 | 2005-06-24 10:04:01.000 | 1 1 | 2020-12-23 07:15:47 |
| 3195 | 2005-06-21 00:02:10.000 | 2383 2383 | 165 165 | 2005-06-21 23:11:10.000 | 2 2 | 2020-12-23 07:16:03 |
| 3531 | 2005-07-06 01:24:08.000 | 1890 1890 | 165 165 | 2005-07-11 22:00:08.000 | 2 2 | 2020-12-23 07:16:08 |
| 3784 | 2005-07-06 13:57:56.000 | 2287 2287 | 165 165 | 2005-07-14 17:24:56.000 | 2 2 | 2020-12-23 07:16:12 |
| 4304 | 2005-07-07 17:01:19.000 | 3382 3382 | 165 165 | 2005-07-12 22:47:19.000 | 2 2 | 2020-12-23 07:16:20 |
| 4945 | 2005-07-08 22:45:02.000 | 2079 2079 | 165 165 | 2005-07-11 23:59:02.000 | 2 2 | 2020-12-23 07:16:30 |
| 5472 | 2005-07-09 23:16:40.000 | 865 865 | 165 165 | 2005-07-10 18:43:40.000 | 2 2 | 2020-12-23 07:16:37 |
| 5658 | 2005-07-10 07:34:08.000 | 4402 4402 | 165 165 | 2005-07-19 04:21:08.000 | 2 2 | 2020-12-23 07:16:40 |
| 5901 | 2005-07-10 20:22:12.000 | 86 86 | 165 165 | 2005-07-19 16:43:12.000 | 2 2 | 2020-12-23 07:16:44 |
| 5973 | 2005-07-11 00:09:17.000 | 1194 1194 | 165 165 | 2005-07-14 19:18:17.000 | 1 1 | 2020-12-23 07:16:45 |
| 7074 | 2005-07-27 04:06:24.000 | 1390 1390 | 165 165 | 2005-07-28 02:04:24.000 | 1 1 | 2020-12-23 07:17:01 |
| 8608 | 2005-07-29 13:18:52.000 | 2976 2976 | 165 165 | 2005-07-30 19:01:52.000 | 2 2 | 2020-12-23 07:17:23 |
| 9182 | 2005-07-30 12:06:58.000 | 2533 2533 | 165 165 | 2005-08-08 11:33:58.000 | 2 2 | 2020-12-23 07:17:32 |
| 9685 | 2005-07-31 06:49:18.000 | 3097 3097 | 165 165 | 2005-08-04 03:19:18.000 | 1 1 | 2020-12-23 07:17:39 |
| 10565 | 2005-08-01 13:08:27.000 | 347 347 | 165 165 | 2005-08-02 10:30:27.000 | 1 1 | 2020-12-23 07:17:52 |
| 11484 | 2005-08-02 22:28:23.000 | 330 330 | 165 165 | 2005-08-04 20:51:23.000 | 2 2 | 2020-12-23 07:18:04 |
| 12643 | 2005-08-18 18:21:06.000 | 2245 2245 | 165 165 | 2005-08-24 14:26:06.000 | 1 1 | 2020-12-23 07:18:20 |
| 15007 | 2005-08-22 08:21:21.000 | 3692 3692 | 165 165 | 2005-08-27 04:44:21.000 | 2 2 | 2020-12-23 07:18:55 |
| 15801 | 2005-08-23 14:26:04.000 | 1590 1590 | 165 165 | 2005-08-28 15:04:04.000 | 1 1 | 2020-12-23 07:19:06 |
| 15834 | 2005-08-23 15:23:50.000 | 217 217 | 165 165 | 2005-09-01 19:31:50.000 | 1 1 | 2020-12-23 07:19:07 |
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) ;