rental
32 rows where customer_id = 520
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 |
|---|---|---|---|---|---|---|
| 962 | 2005-05-30 18:45:17.000 | 4535 4535 | 520 520 | 2005-06-05 22:47:17.000 | 1 1 | 2020-12-23 07:15:33 |
| 1411 | 2005-06-15 17:05:36.000 | 2276 2276 | 520 520 | 2005-06-21 14:05:36.000 | 1 1 | 2020-12-23 07:15:38 |
| 2174 | 2005-06-18 00:09:01.000 | 3279 3279 | 520 520 | 2005-06-25 23:14:01.000 | 1 1 | 2020-12-23 07:15:49 |
| 2772 | 2005-06-19 17:59:27.000 | 1221 1221 | 520 520 | 2005-06-23 17:52:27.000 | 1 1 | 2020-12-23 07:15:58 |
| 3482 | 2005-07-05 23:13:22.000 | 1291 1291 | 520 520 | 2005-07-12 19:02:22.000 | 2 2 | 2020-12-23 07:16:08 |
| 3499 | 2005-07-06 00:04:20.000 | 1850 1850 | 520 520 | 2005-07-14 21:12:20.000 | 2 2 | 2020-12-23 07:16:08 |
| 4346 | 2005-07-07 18:58:45.000 | 1906 1906 | 520 520 | 2005-07-10 16:37:45.000 | 1 1 | 2020-12-23 07:16:21 |
| 5799 | 2005-07-10 14:53:35.000 | 3045 3045 | 520 520 | 2005-07-14 16:18:35.000 | 2 2 | 2020-12-23 07:16:42 |
| 5802 | 2005-07-10 15:02:17.000 | 2295 2295 | 520 520 | 2005-07-19 15:43:17.000 | 2 2 | 2020-12-23 07:16:42 |
| 5853 | 2005-07-10 17:45:13.000 | 3026 3026 | 520 520 | 2005-07-17 21:37:13.000 | 1 1 | 2020-12-23 07:16:43 |
| 6029 | 2005-07-11 02:36:46.000 | 2030 2030 | 520 520 | 2005-07-14 20:51:46.000 | 2 2 | 2020-12-23 07:16:46 |
| 7198 | 2005-07-27 08:50:07.000 | 4283 4283 | 520 520 | 2005-08-04 09:46:07.000 | 2 2 | 2020-12-23 07:17:03 |
| 7720 | 2005-07-28 04:41:44.000 | 185 185 | 520 520 | 2005-08-04 06:51:44.000 | 2 2 | 2020-12-23 07:17:11 |
| 7936 | 2005-07-28 12:33:21.000 | 563 563 | 520 520 | 2005-07-30 13:31:21.000 | 2 2 | 2020-12-23 07:17:13 |
| 8294 | 2005-07-29 02:32:41.000 | 1811 1811 | 520 520 | 2005-08-02 06:28:41.000 | 1 1 | 2020-12-23 07:17:19 |
| 8435 | 2005-07-29 07:20:16.000 | 4462 4462 | 520 520 | 2005-08-02 09:54:16.000 | 2 2 | 2020-12-23 07:17:21 |
| 9803 | 2005-07-31 11:06:02.000 | 3783 3783 | 520 520 | 2005-08-01 06:25:02.000 | 1 1 | 2020-12-23 07:17:41 |
| 10072 | 2005-07-31 19:50:37.000 | 3963 3963 | 520 520 | 2005-08-03 00:25:37.000 | 2 2 | 2020-12-23 07:17:45 |
| 10530 | 2005-08-01 12:01:17.000 | 3216 3216 | 520 520 | 2005-08-06 09:55:17.000 | 2 2 | 2020-12-23 07:17:51 |
| 11566 | 2005-08-17 01:28:35.000 | 4020 4020 | 520 520 | 2005-08-20 22:42:35.000 | 1 1 | 2020-12-23 07:18:06 |
| 12517 | 2005-08-18 13:40:20.000 | 2908 2908 | 520 520 | 2005-08-27 14:04:20.000 | 1 1 | 2020-12-23 07:18:18 |
| 12628 | 2005-08-18 17:40:25.000 | 3210 3210 | 520 520 | 2005-08-25 13:39:25.000 | 1 1 | 2020-12-23 07:18:20 |
| 12647 | 2005-08-18 18:29:51.000 | 323 323 | 520 520 | 2005-08-27 22:51:51.000 | 1 1 | 2020-12-23 07:18:20 |
| 13311 | 2005-08-19 19:07:09.000 | 3890 3890 | 520 520 | 2005-08-20 23:07:09.000 | 1 1 | 2020-12-23 07:18:30 |
| 13438 | 2005-08-19 23:38:02.000 | 1750 1750 | 520 520 | 2005-08-26 21:36:02.000 | 1 1 | 2020-12-23 07:18:32 |
| 13659 | 2005-08-20 08:05:52.000 | 3610 3610 | 520 520 | 2005-08-24 12:38:52.000 | 1 1 | 2020-12-23 07:18:35 |
| 13746 | 2005-08-20 10:55:28.000 | 3742 3742 | 520 520 | 2005-08-25 07:48:28.000 | 2 2 | 2020-12-23 07:18:37 |
| 14372 | 2005-08-21 09:39:50.000 | 1953 1953 | 520 520 | 2005-08-28 13:36:50.000 | 1 1 | 2020-12-23 07:18:46 |
| 14509 | 2005-08-21 14:39:58.000 | 541 541 | 520 520 | 2005-08-26 13:19:58.000 | 1 1 | 2020-12-23 07:18:48 |
| 15465 | 2005-08-23 01:16:33.000 | 362 362 | 520 520 | 2005-08-28 20:08:33.000 | 2 2 | 2020-12-23 07:19:02 |
| 15492 | 2005-08-23 02:13:46.000 | 1298 1298 | 520 520 | 2005-08-26 21:53:46.000 | 2 2 | 2020-12-23 07:19:02 |
| 15948 | 2005-08-23 18:59:33.000 | 432 432 | 520 520 | 2005-08-31 13:02:33.000 | 2 2 | 2020-12-23 07:19:08 |
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) ;