rental
22 rows where customer_id = 598
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 |
|---|---|---|---|---|---|---|
| 3005 | 2005-06-20 10:10:29.000 | 286 286 | 598 598 | 2005-06-28 15:48:29.000 | 2 2 | 2020-12-23 07:16:01 |
| 3648 | 2005-07-06 07:30:41.000 | 2810 2810 | 598 598 | 2005-07-10 06:00:41.000 | 2 2 | 2020-12-23 07:16:10 |
| 3950 | 2005-07-06 21:48:44.000 | 4153 4153 | 598 598 | 2005-07-14 02:25:44.000 | 1 1 | 2020-12-23 07:16:15 |
| 3972 | 2005-07-06 22:53:57.000 | 1895 1895 | 598 598 | 2005-07-11 01:32:57.000 | 1 1 | 2020-12-23 07:16:15 |
| 4181 | 2005-07-07 10:27:54.000 | 3725 3725 | 598 598 | 2005-07-13 06:09:54.000 | 1 1 | 2020-12-23 07:16:18 |
| 5688 | 2005-07-10 09:16:08.000 | 3036 3036 | 598 598 | 2005-07-15 09:44:08.000 | 1 1 | 2020-12-23 07:16:41 |
| 6519 | 2005-07-12 04:00:36.000 | 4149 4149 | 598 598 | 2005-07-19 01:15:36.000 | 1 1 | 2020-12-23 07:16:52 |
| 6528 | 2005-07-12 04:29:44.000 | 3824 3824 | 598 598 | 2005-07-18 02:39:44.000 | 2 2 | 2020-12-23 07:16:53 |
| 6575 | 2005-07-12 06:12:53.000 | 1414 1414 | 598 598 | 2005-07-18 07:55:53.000 | 2 2 | 2020-12-23 07:16:53 |
| 6660 | 2005-07-12 11:20:12.000 | 446 446 | 598 598 | 2005-07-20 12:58:12.000 | 2 2 | 2020-12-23 07:16:55 |
| 7201 | 2005-07-27 08:57:40.000 | 482 482 | 598 598 | 2005-08-04 09:55:40.000 | 2 2 | 2020-12-23 07:17:03 |
| 7354 | 2005-07-27 14:42:11.000 | 2395 2395 | 598 598 | 2005-08-03 18:19:11.000 | 2 2 | 2020-12-23 07:17:05 |
| 7998 | 2005-07-28 15:08:48.000 | 1397 1397 | 598 598 | 2005-07-31 16:14:48.000 | 2 2 | 2020-12-23 07:17:14 |
| 8436 | 2005-07-29 07:21:20.000 | 2702 2702 | 598 598 | 2005-07-31 12:56:20.000 | 2 2 | 2020-12-23 07:17:21 |
| 8511 | 2005-07-29 09:42:42.000 | 3667 3667 | 598 598 | 2005-08-06 14:22:42.000 | 2 2 | 2020-12-23 07:17:22 |
| 8939 | 2005-07-30 02:56:53.000 | 4175 4175 | 598 598 | 2005-08-01 21:19:53.000 | 1 1 | 2020-12-23 07:17:28 |
| 10054 | 2005-07-31 19:15:52.000 | 2303 2303 | 598 598 | 2005-08-04 19:54:52.000 | 1 1 | 2020-12-23 07:17:44 |
| 11350 | 2005-08-02 17:22:59.000 | 1265 1265 | 598 598 | 2005-08-09 19:56:59.000 | 2 2 | 2020-12-23 07:18:02 |
| 12601 | 2005-08-18 16:47:52.000 | 3099 3099 | 598 598 | 2005-08-24 11:05:52.000 | 1 1 | 2020-12-23 07:18:19 |
| 14345 | 2005-08-21 08:41:15.000 | 1726 1726 | 598 598 | 2005-08-24 11:59:15.000 | 1 1 | 2020-12-23 07:18:46 |
| 15307 | 2005-08-22 19:54:26.000 | 4525 4525 | 598 598 | 2005-08-29 01:38:26.000 | 2 2 | 2020-12-23 07:18:59 |
| 15443 | 2005-08-23 00:44:15.000 | 742 742 | 598 598 | 2005-09-01 05:33:15.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) ;