rental
22 rows where customer_id = 480
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 |
|---|---|---|---|---|---|---|
| 518 | 2005-05-28 03:18:02.000 | 4087 4087 | 480 480 | 2005-05-30 05:32:02.000 | 1 1 | 2020-12-23 07:15:26 |
| 720 | 2005-05-29 05:17:30.000 | 3687 3687 | 480 480 | 2005-06-06 02:47:30.000 | 2 2 | 2020-12-23 07:15:29 |
| 822 | 2005-05-29 21:36:00.000 | 2634 2634 | 480 480 | 2005-06-07 17:24:00.000 | 1 1 | 2020-12-23 07:15:31 |
| 1353 | 2005-06-15 13:13:36.000 | 2711 2711 | 480 480 | 2005-06-21 08:46:36.000 | 2 2 | 2020-12-23 07:15:38 |
| 1733 | 2005-06-16 15:37:07.000 | 542 542 | 480 480 | 2005-06-23 15:53:07.000 | 2 2 | 2020-12-23 07:15:43 |
| 3507 | 2005-07-06 00:23:43.000 | 166 166 | 480 480 | 2005-07-15 04:19:43.000 | 1 1 | 2020-12-23 07:16:08 |
| 5633 | 2005-07-10 06:22:24.000 | 1056 1056 | 480 480 | 2005-07-11 05:59:24.000 | 2 2 | 2020-12-23 07:16:40 |
| 6191 | 2005-07-11 11:37:52.000 | 3448 3448 | 480 480 | 2005-07-17 12:45:52.000 | 1 1 | 2020-12-23 07:16:48 |
| 7257 | 2005-07-27 11:04:17.000 | 3302 3302 | 480 480 | 2005-08-04 12:32:17.000 | 2 2 | 2020-12-23 07:17:04 |
| 7910 | 2005-07-28 11:44:56.000 | 2044 2044 | 480 480 | 2005-08-05 14:37:56.000 | 2 2 | 2020-12-23 07:17:13 |
| 8847 | 2005-07-29 23:13:41.000 | 4133 4133 | 480 480 | 2005-07-31 23:55:41.000 | 1 1 | 2020-12-23 07:17:27 |
| 8967 | 2005-07-30 03:56:55.000 | 1536 1536 | 480 480 | 2005-08-06 05:25:55.000 | 2 2 | 2020-12-23 07:17:29 |
| 9332 | 2005-07-30 17:53:39.000 | 1156 1156 | 480 480 | 2005-08-02 12:25:39.000 | 1 1 | 2020-12-23 07:17:34 |
| 10808 | 2005-08-01 22:37:11.000 | 596 596 | 480 480 | 2005-08-09 02:37:11.000 | 1 1 | 2020-12-23 07:17:55 |
| 11017 | 2005-08-02 05:19:51.000 | 4140 4140 | 480 480 | 2005-08-09 00:36:51.000 | 2 2 | 2020-12-23 07:17:58 |
| 11369 | 2005-08-02 18:04:41.000 | 2480 2480 | 480 480 | 2005-08-09 18:41:41.000 | 1 1 | 2020-12-23 07:18:03 |
| 12905 | 2005-08-19 04:13:37.000 | 1043 1043 | 480 480 | 2005-08-26 23:52:37.000 | 1 1 | 2020-12-23 07:18:24 |
| 13092 | 2005-08-19 10:41:09.000 | 4359 4359 | 480 480 | 2005-08-25 05:11:09.000 | 2 2 | 2020-12-23 07:18:27 |
| 13131 | 2005-08-19 12:08:13.000 | 1466 1466 | 480 480 | 2005-08-27 13:43:13.000 | 2 2 | 2020-12-23 07:18:27 |
| 13831 | 2005-08-20 13:59:35.000 | 570 570 | 480 480 | 2005-08-24 12:50:35.000 | 1 1 | 2020-12-23 07:18:38 |
| 15363 | 2005-08-22 21:41:40.000 | 2326 2326 | 480 480 | 2005-08-23 21:40:40.000 | 1 1 | 2020-12-23 07:19:00 |
| 15579 | 2005-08-23 05:38:41.000 | 3986 3986 | 480 480 | 2005-08-29 09:18:41.000 | 1 1 | 2020-12-23 07:19:03 |
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) ;