rental
28 rows where customer_id = 126
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 |
|---|---|---|---|---|---|---|
| 9 | 2005-05-25 00:00:40.000 | 2580 2580 | 126 126 | 2005-05-28 00:22:40.000 | 1 1 | 2020-12-23 07:15:20 |
| 752 | 2005-05-29 10:14:15.000 | 1720 1720 | 126 126 | 2005-06-04 06:30:15.000 | 1 1 | 2020-12-23 07:15:29 |
| 1054 | 2005-05-31 07:33:25.000 | 1575 1575 | 126 126 | 2005-06-02 01:40:25.000 | 2 2 | 2020-12-23 07:15:34 |
| 3450 | 2005-06-21 21:01:57.000 | 2268 2268 | 126 126 | 2005-06-25 23:57:57.000 | 1 1 | 2020-12-23 07:16:07 |
| 3502 | 2005-07-06 00:15:06.000 | 1026 1026 | 126 126 | 2005-07-13 01:35:06.000 | 1 1 | 2020-12-23 07:16:08 |
| 3725 | 2005-07-06 11:15:04.000 | 2789 2789 | 126 126 | 2005-07-09 06:39:04.000 | 1 1 | 2020-12-23 07:16:11 |
| 3804 | 2005-07-06 15:08:08.000 | 537 537 | 126 126 | 2005-07-15 14:01:08.000 | 2 2 | 2020-12-23 07:16:12 |
| 4691 | 2005-07-08 11:04:53.000 | 596 596 | 126 126 | 2005-07-09 07:48:53.000 | 1 1 | 2020-12-23 07:16:26 |
| 4730 | 2005-07-08 12:59:49.000 | 1619 1619 | 126 126 | 2005-07-14 16:15:49.000 | 2 2 | 2020-12-23 07:16:27 |
| 5137 | 2005-07-09 08:00:34.000 | 409 409 | 126 126 | 2005-07-12 05:34:34.000 | 1 1 | 2020-12-23 07:16:33 |
| 5865 | 2005-07-10 18:31:05.000 | 1382 1382 | 126 126 | 2005-07-12 18:29:05.000 | 2 2 | 2020-12-23 07:16:43 |
| 6747 | 2005-07-12 14:33:21.000 | 3651 3651 | 126 126 | 2005-07-13 09:59:21.000 | 2 2 | 2020-12-23 07:16:56 |
| 6755 | 2005-07-12 15:07:49.000 | 2542 2542 | 126 126 | 2005-07-21 18:43:49.000 | 2 2 | 2020-12-23 07:16:56 |
| 7962 | 2005-07-28 13:48:09.000 | 1746 1746 | 126 126 | 2005-08-03 19:21:09.000 | 1 1 | 2020-12-23 07:17:14 |
| 8091 | 2005-07-28 18:27:29.000 | 3025 3025 | 126 126 | 2005-08-01 19:45:29.000 | 2 2 | 2020-12-23 07:17:16 |
| 9492 | 2005-07-30 23:52:21.000 | 639 639 | 126 126 | 2005-08-08 20:50:21.000 | 2 2 | 2020-12-23 07:17:36 |
| 10032 | 2005-07-31 18:41:55.000 | 2331 2331 | 126 126 | 2005-08-04 22:45:55.000 | 1 1 | 2020-12-23 07:17:44 |
| 11196 | 2005-08-02 11:42:40.000 | 2648 2648 | 126 126 | 2005-08-10 11:58:40.000 | 2 2 | 2020-12-23 07:18:00 |
| 11613 | 2005-08-17 03:50:33.000 | 2486 2486 | 126 126 | 2005-08-25 00:37:33.000 | 2 2 | 2020-12-23 07:18:06 |
| 11779 | 2005-08-17 10:31:58.000 | 181 181 | 126 126 | 2005-08-24 15:28:58.000 | 2 2 | 2020-12-23 07:18:08 |
| 11801 | 2005-08-17 11:30:11.000 | 659 659 | 126 126 | 2005-08-23 09:54:11.000 | 1 1 | 2020-12-23 07:18:09 |
| 12991 | 2005-08-19 07:21:24.000 | 2227 2227 | 126 126 | 2005-08-21 04:31:24.000 | 2 2 | 2020-12-23 07:18:25 |
| 13015 | 2005-08-19 07:56:51.000 | 3461 3461 | 126 126 | 2005-08-28 07:05:51.000 | 2 2 | 2020-12-23 07:18:25 |
| 13177 | 2005-08-19 13:56:58.000 | 3172 3172 | 126 126 | 2005-08-23 13:13:58.000 | 2 2 | 2020-12-23 07:18:28 |
| 14477 | 2005-08-21 13:32:38.000 | 1564 1564 | 126 126 | 2005-08-25 18:02:38.000 | 2 2 | 2020-12-23 07:18:47 |
| 14577 | 2005-08-21 16:52:29.000 | 1965 1965 | 126 126 | 2005-08-26 12:30:29.000 | 1 1 | 2020-12-23 07:18:49 |
| 15741 | 2005-08-23 12:10:54.000 | 4243 4243 | 126 126 | 2005-08-24 10:08:54.000 | 2 2 | 2020-12-23 07:19:05 |
| 16007 | 2005-08-23 21:02:43.000 | 3236 3236 | 126 126 | 2005-08-30 23:37:43.000 | 2 2 | 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) ;