rental
20 rows where customer_id = 191
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 |
|---|---|---|---|---|---|---|
| 1134 | 2005-05-31 19:14:15.000 | 143 143 | 191 191 | 2005-06-02 17:13:15.000 | 2 2 | 2020-12-23 07:15:35 |
| 1152 | 2005-05-31 21:32:17.000 | 210 210 | 191 191 | 2005-06-04 21:07:17.000 | 2 2 | 2020-12-23 07:15:35 |
| 1173 | 2005-06-14 23:54:46.000 | 1050 1050 | 191 191 | 2005-06-19 23:26:46.000 | 2 2 | 2020-12-23 07:15:35 |
| 1278 | 2005-06-15 08:09:12.000 | 4471 4471 | 191 191 | 2005-06-17 04:05:12.000 | 2 2 | 2020-12-23 07:15:37 |
| 1677 | 2005-06-16 11:07:11.000 | 240 240 | 191 191 | 2005-06-23 10:50:11.000 | 1 1 | 2020-12-23 07:15:42 |
| 1870 | 2005-06-17 02:24:36.000 | 895 895 | 191 191 | 2005-06-17 23:04:36.000 | 2 2 | 2020-12-23 07:15:45 |
| 2051 | 2005-06-17 15:10:16.000 | 2366 2366 | 191 191 | 2005-06-19 20:45:16.000 | 1 1 | 2020-12-23 07:15:48 |
| 2555 | 2005-06-19 03:07:02.000 | 260 260 | 191 191 | 2005-06-25 05:25:02.000 | 2 2 | 2020-12-23 07:15:55 |
| 5338 | 2005-07-09 17:07:07.000 | 3449 3449 | 191 191 | 2005-07-14 11:15:07.000 | 1 1 | 2020-12-23 07:16:35 |
| 5397 | 2005-07-09 19:43:51.000 | 4376 4376 | 191 191 | 2005-07-17 00:11:51.000 | 1 1 | 2020-12-23 07:16:36 |
| 5924 | 2005-07-10 21:41:23.000 | 629 629 | 191 191 | 2005-07-16 21:33:23.000 | 1 1 | 2020-12-23 07:16:44 |
| 7150 | 2005-07-27 07:11:14.000 | 457 457 | 191 191 | 2005-08-05 06:55:14.000 | 2 2 | 2020-12-23 07:17:02 |
| 7450 | 2005-07-27 18:18:35.000 | 3496 3496 | 191 191 | 2005-08-04 15:18:35.000 | 1 1 | 2020-12-23 07:17:06 |
| 7520 | 2005-07-27 21:02:02.000 | 3875 3875 | 191 191 | 2005-07-28 18:18:02.000 | 1 1 | 2020-12-23 07:17:07 |
| 8583 | 2005-07-29 12:04:50.000 | 3130 3130 | 191 191 | 2005-08-04 17:21:50.000 | 1 1 | 2020-12-23 07:17:23 |
| 9297 | 2005-07-30 16:26:29.000 | 3502 3502 | 191 191 | 2005-08-03 13:51:29.000 | 1 1 | 2020-12-23 07:17:34 |
| 9964 | 2005-07-31 16:17:39.000 | 3149 3149 | 191 191 | 2005-08-03 15:03:39.000 | 1 1 | 2020-12-23 07:17:43 |
| 10532 | 2005-08-01 12:06:35.000 | 746 746 | 191 191 | 2005-08-07 16:04:35.000 | 2 2 | 2020-12-23 07:17:51 |
| 14361 | 2006-02-14 15:16:03.000 | 1231 1231 | 191 191 | 2 2 | 2020-12-23 07:18:46 | |
| 15375 | 2005-08-22 22:12:02.000 | 3864 3864 | 191 191 | 2005-08-24 00:50:02.000 | 2 2 | 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) ;