rental
28 rows where customer_id = 12
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 |
|---|---|---|---|---|---|---|
| 988 | 2005-05-30 23:08:03.000 | 1364 1364 | 12 12 | 2005-06-07 00:22:03.000 | 1 1 | 2020-12-23 07:15:33 |
| 1084 | 2005-05-31 11:10:17.000 | 4577 4577 | 12 12 | 2005-06-01 11:15:17.000 | 1 1 | 2020-12-23 07:15:34 |
| 1752 | 2005-06-16 17:02:55.000 | 3529 3529 | 12 12 | 2005-06-23 19:09:55.000 | 2 2 | 2020-12-23 07:15:43 |
| 2434 | 2005-06-18 18:11:51.000 | 3739 3739 | 12 12 | 2005-06-23 12:52:51.000 | 2 2 | 2020-12-23 07:15:53 |
| 2500 | 2005-06-18 23:07:12.000 | 4241 4241 | 12 12 | 2005-06-26 17:27:12.000 | 1 1 | 2020-12-23 07:15:54 |
| 2623 | 2005-06-19 08:11:51.000 | 4477 4477 | 12 12 | 2005-06-26 12:28:51.000 | 2 2 | 2020-12-23 07:15:56 |
| 3135 | 2005-06-20 19:33:52.000 | 1122 1122 | 12 12 | 2005-06-29 18:20:52.000 | 1 1 | 2020-12-23 07:16:02 |
| 3411 | 2005-06-21 16:31:27.000 | 4250 4250 | 12 12 | 2005-06-28 12:27:27.000 | 2 2 | 2020-12-23 07:16:07 |
| 3870 | 2005-07-06 17:57:54.000 | 3357 3357 | 12 12 | 2005-07-13 12:30:54.000 | 1 1 | 2020-12-23 07:16:13 |
| 5071 | 2005-07-09 05:00:39.000 | 4358 4358 | 12 12 | 2005-07-09 23:08:39.000 | 1 1 | 2020-12-23 07:16:32 |
| 5074 | 2005-07-09 05:06:24.000 | 1379 1379 | 12 12 | 2005-07-12 04:37:24.000 | 1 1 | 2020-12-23 07:16:32 |
| 5111 | 2005-07-09 07:02:19.000 | 2875 2875 | 12 12 | 2005-07-10 06:27:19.000 | 2 2 | 2020-12-23 07:16:32 |
| 5242 | 2005-07-09 13:20:25.000 | 848 848 | 12 12 | 2005-07-18 07:38:25.000 | 1 1 | 2020-12-23 07:16:34 |
| 6773 | 2005-07-12 15:55:39.000 | 3346 3346 | 12 12 | 2005-07-18 17:52:39.000 | 2 2 | 2020-12-23 07:16:56 |
| 7008 | 2005-07-27 01:44:03.000 | 3659 3659 | 12 12 | 2005-07-28 21:19:03.000 | 2 2 | 2020-12-23 07:17:00 |
| 7279 | 2005-07-27 11:50:47.000 | 1424 1424 | 12 12 | 2005-07-30 11:19:47.000 | 2 2 | 2020-12-23 07:17:04 |
| 8985 | 2005-07-30 04:34:51.000 | 3179 3179 | 12 12 | 2005-08-06 00:45:51.000 | 2 2 | 2020-12-23 07:17:29 |
| 9166 | 2005-07-30 11:26:28.000 | 308 308 | 12 12 | 2005-08-04 12:32:28.000 | 1 1 | 2020-12-23 07:17:32 |
| 9238 | 2005-07-30 13:49:43.000 | 3356 3356 | 12 12 | 2005-08-08 08:25:43.000 | 2 2 | 2020-12-23 07:17:33 |
| 9627 | 2005-07-31 04:42:46.000 | 471 471 | 12 12 | 2005-08-08 00:42:46.000 | 2 2 | 2020-12-23 07:17:38 |
| 9708 | 2005-07-31 07:45:33.000 | 3264 3264 | 12 12 | 2005-08-08 08:56:33.000 | 1 1 | 2020-12-23 07:17:40 |
| 10392 | 2005-08-01 06:50:26.000 | 3017 3017 | 12 12 | 2005-08-10 10:52:26.000 | 1 1 | 2020-12-23 07:17:49 |
| 11497 | 2005-08-16 22:52:30.000 | 436 436 | 12 12 | 2005-08-21 19:52:30.000 | 1 1 | 2020-12-23 07:18:05 |
| 12604 | 2005-08-18 16:58:48.000 | 4127 4127 | 12 12 | 2005-08-19 19:36:48.000 | 1 1 | 2020-12-23 07:18:19 |
| 13519 | 2005-08-20 02:37:07.000 | 182 182 | 12 12 | 2005-08-23 01:26:07.000 | 2 2 | 2020-12-23 07:18:33 |
| 13895 | 2005-08-20 15:58:28.000 | 3060 3060 | 12 12 | 2005-08-26 15:07:28.000 | 2 2 | 2020-12-23 07:18:39 |
| 14240 | 2005-08-21 05:19:39.000 | 3294 3294 | 12 12 | 2005-08-22 23:25:39.000 | 2 2 | 2020-12-23 07:18:44 |
| 15993 | 2005-08-23 20:28:44.000 | 1638 1638 | 12 12 | 2005-08-27 16:23:44.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) ;