rental
30 rows where customer_id = 161
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 |
|---|---|---|---|---|---|---|
| 428 | 2005-05-27 16:10:58.000 | 3349 3349 | 161 161 | 2005-05-31 17:24:58.000 | 2 2 | 2020-12-23 07:15:25 |
| 477 | 2005-05-27 22:33:33.000 | 2437 2437 | 161 161 | 2005-06-02 18:35:33.000 | 2 2 | 2020-12-23 07:15:26 |
| 520 | 2005-05-28 03:27:37.000 | 3845 3845 | 161 161 | 2005-06-04 05:47:37.000 | 1 1 | 2020-12-23 07:15:26 |
| 539 | 2005-05-28 06:26:16.000 | 3427 3427 | 161 161 | 2005-05-30 02:02:16.000 | 1 1 | 2020-12-23 07:15:27 |
| 612 | 2005-05-28 15:24:54.000 | 2180 2180 | 161 161 | 2005-05-30 14:22:54.000 | 2 2 | 2020-12-23 07:15:28 |
| 1003 | 2005-05-31 00:48:20.000 | 133 133 | 161 161 | 2005-06-02 04:53:20.000 | 2 2 | 2020-12-23 07:15:33 |
| 1856 | 2005-06-17 01:02:00.000 | 3034 3034 | 161 161 | 2005-06-19 21:29:00.000 | 2 2 | 2020-12-23 07:15:45 |
| 3075 | 2005-06-20 14:52:19.000 | 4346 4346 | 161 161 | 2005-06-28 18:48:19.000 | 2 2 | 2020-12-23 07:16:02 |
| 3948 | 2005-07-06 21:45:53.000 | 2254 2254 | 161 161 | 2005-07-08 19:24:53.000 | 2 2 | 2020-12-23 07:16:15 |
| 4187 | 2005-07-07 10:41:31.000 | 2 2 | 161 161 | 2005-07-11 06:25:31.000 | 1 1 | 2020-12-23 07:16:18 |
| 4248 | 2005-07-07 13:59:20.000 | 773 773 | 161 161 | 2005-07-14 15:18:20.000 | 2 2 | 2020-12-23 07:16:19 |
| 4490 | 2005-07-08 01:26:32.000 | 2690 2690 | 161 161 | 2005-07-09 01:13:32.000 | 1 1 | 2020-12-23 07:16:23 |
| 5349 | 2005-07-09 17:35:35.000 | 3139 3139 | 161 161 | 2005-07-18 14:05:35.000 | 1 1 | 2020-12-23 07:16:35 |
| 6873 | 2005-07-12 20:20:50.000 | 802 802 | 161 161 | 2005-07-17 01:51:50.000 | 1 1 | 2020-12-23 07:16:58 |
| 7003 | 2005-07-27 01:32:06.000 | 636 636 | 161 161 | 2005-07-30 21:33:06.000 | 2 2 | 2020-12-23 07:17:00 |
| 8774 | 2005-07-29 20:05:04.000 | 315 315 | 161 161 | 2005-07-31 14:32:04.000 | 1 1 | 2020-12-23 07:17:26 |
| 9135 | 2005-07-30 10:06:53.000 | 821 821 | 161 161 | 2005-08-03 13:57:53.000 | 2 2 | 2020-12-23 07:17:31 |
| 9421 | 2005-07-30 21:08:32.000 | 2206 2206 | 161 161 | 2005-08-02 00:43:32.000 | 1 1 | 2020-12-23 07:17:35 |
| 10241 | 2005-08-01 02:12:25.000 | 1526 1526 | 161 161 | 2005-08-08 00:37:25.000 | 1 1 | 2020-12-23 07:17:47 |
| 10355 | 2005-08-01 05:47:37.000 | 2158 2158 | 161 161 | 2005-08-02 09:28:37.000 | 2 2 | 2020-12-23 07:17:49 |
| 10637 | 2005-08-01 15:44:09.000 | 1243 1243 | 161 161 | 2005-08-04 14:42:09.000 | 1 1 | 2020-12-23 07:17:53 |
| 10863 | 2005-08-02 00:18:07.000 | 1170 1170 | 161 161 | 2005-08-10 06:16:07.000 | 2 2 | 2020-12-23 07:17:56 |
| 10939 | 2005-08-02 03:06:20.000 | 2131 2131 | 161 161 | 2005-08-04 01:22:20.000 | 2 2 | 2020-12-23 07:17:57 |
| 11838 | 2005-08-17 13:06:00.000 | 3576 3576 | 161 161 | 2005-08-20 11:44:00.000 | 1 1 | 2020-12-23 07:18:09 |
| 14150 | 2005-08-21 02:23:03.000 | 2324 2324 | 161 161 | 2005-08-25 22:50:03.000 | 2 2 | 2020-12-23 07:18:43 |
| 14370 | 2005-08-21 09:35:14.000 | 3520 3520 | 161 161 | 2005-08-27 05:21:14.000 | 2 2 | 2020-12-23 07:18:46 |
| 15000 | 2005-08-22 07:54:58.000 | 3080 3080 | 161 161 | 2005-08-24 12:46:58.000 | 2 2 | 2020-12-23 07:18:55 |
| 15045 | 2005-08-22 09:53:23.000 | 3485 3485 | 161 161 | 2005-08-26 10:09:23.000 | 2 2 | 2020-12-23 07:18:55 |
| 15150 | 2005-08-22 14:12:05.000 | 1797 1797 | 161 161 | 2005-08-27 12:47:05.000 | 1 1 | 2020-12-23 07:18:57 |
| 15420 | 2005-08-22 23:55:51.000 | 1396 1396 | 161 161 | 2005-08-31 20:09:51.000 | 2 2 | 2020-12-23 07:19:01 |
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) ;