rental
19 rows where customer_id = 395
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 |
|---|---|---|---|---|---|---|
| 1270 | 2005-06-15 07:30:22.000 | 62 62 | 395 395 | 2005-06-18 11:31:22.000 | 2 2 | 2020-12-23 07:15:37 |
| 1562 | 2005-06-16 02:46:27.000 | 595 595 | 395 395 | 2005-06-23 00:56:27.000 | 2 2 | 2020-12-23 07:15:40 |
| 1603 | 2005-06-16 06:14:03.000 | 3308 3308 | 395 395 | 2005-06-17 06:04:03.000 | 2 2 | 2020-12-23 07:15:41 |
| 3030 | 2005-06-20 11:51:59.000 | 1543 1543 | 395 395 | 2005-06-24 10:51:59.000 | 1 1 | 2020-12-23 07:16:01 |
| 3310 | 2005-06-21 08:04:51.000 | 1717 1717 | 395 395 | 2005-06-22 04:20:51.000 | 2 2 | 2020-12-23 07:16:05 |
| 3389 | 2005-06-21 14:37:55.000 | 727 727 | 395 395 | 2005-06-28 18:13:55.000 | 1 1 | 2020-12-23 07:16:06 |
| 3684 | 2005-07-06 09:29:22.000 | 3261 3261 | 395 395 | 2005-07-12 08:19:22.000 | 1 1 | 2020-12-23 07:16:11 |
| 4185 | 2005-07-07 10:31:05.000 | 2425 2425 | 395 395 | 2005-07-13 05:30:05.000 | 2 2 | 2020-12-23 07:16:18 |
| 4393 | 2005-07-07 21:12:36.000 | 4034 4034 | 395 395 | 2005-07-09 22:41:36.000 | 2 2 | 2020-12-23 07:16:21 |
| 5087 | 2005-07-09 05:44:28.000 | 3716 3716 | 395 395 | 2005-07-10 02:25:28.000 | 2 2 | 2020-12-23 07:16:32 |
| 5136 | 2005-07-09 07:55:01.000 | 3498 3498 | 395 395 | 2005-07-11 05:26:01.000 | 2 2 | 2020-12-23 07:16:33 |
| 7740 | 2005-07-28 05:23:36.000 | 3613 3613 | 395 395 | 2005-08-01 02:20:36.000 | 2 2 | 2020-12-23 07:17:11 |
| 7986 | 2005-07-28 14:30:13.000 | 1283 1283 | 395 395 | 2005-08-05 09:35:13.000 | 1 1 | 2020-12-23 07:17:14 |
| 11889 | 2005-08-17 15:08:27.000 | 293 293 | 395 395 | 2005-08-18 17:10:27.000 | 1 1 | 2020-12-23 07:18:10 |
| 14471 | 2005-08-21 13:10:40.000 | 1254 1254 | 395 395 | 2005-08-26 16:49:40.000 | 1 1 | 2020-12-23 07:18:47 |
| 14720 | 2005-08-21 21:43:53.000 | 3617 3617 | 395 395 | 2005-08-25 18:21:53.000 | 1 1 | 2020-12-23 07:18:51 |
| 15698 | 2005-08-23 10:11:40.000 | 4465 4465 | 395 395 | 2005-08-28 08:50:40.000 | 2 2 | 2020-12-23 07:19:05 |
| 15856 | 2005-08-23 15:59:12.000 | 3379 3379 | 395 395 | 2005-08-25 15:36:12.000 | 1 1 | 2020-12-23 07:19:07 |
| 15970 | 2005-08-23 19:54:24.000 | 4509 4509 | 395 395 | 2005-08-24 18:07:24.000 | 1 1 | 2020-12-23 07:19:09 |
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) ;