rental
27 rows where customer_id = 220
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 |
|---|---|---|---|---|---|---|
| 409 | 2005-05-27 14:10:58.000 | 3652 3652 | 220 220 | 2005-06-02 10:40:58.000 | 2 2 | 2020-12-23 07:15:25 |
| 480 | 2005-05-27 22:47:39.000 | 2108 2108 | 220 220 | 2005-06-04 21:17:39.000 | 2 2 | 2020-12-23 07:15:26 |
| 1832 | 2005-06-16 22:35:20.000 | 500 500 | 220 220 | 2005-06-19 03:09:20.000 | 1 1 | 2020-12-23 07:15:44 |
| 4918 | 2005-07-08 21:37:31.000 | 3819 3819 | 220 220 | 2005-07-11 20:16:31.000 | 2 2 | 2020-12-23 07:16:29 |
| 5613 | 2005-07-10 05:15:43.000 | 4517 4517 | 220 220 | 2005-07-13 05:17:43.000 | 2 2 | 2020-12-23 07:16:39 |
| 5847 | 2005-07-10 17:27:42.000 | 4403 4403 | 220 220 | 2005-07-12 14:51:42.000 | 2 2 | 2020-12-23 07:16:43 |
| 5859 | 2005-07-10 18:02:02.000 | 131 131 | 220 220 | 2005-07-11 23:24:02.000 | 1 1 | 2020-12-23 07:16:43 |
| 6412 | 2005-07-11 23:19:21.000 | 3797 3797 | 220 220 | 2005-07-16 19:48:21.000 | 1 1 | 2020-12-23 07:16:51 |
| 6832 | 2005-07-12 18:51:41.000 | 444 444 | 220 220 | 2005-07-20 13:29:41.000 | 2 2 | 2020-12-23 07:16:57 |
| 7750 | 2005-07-28 05:55:30.000 | 820 820 | 220 220 | 2005-08-06 04:32:30.000 | 2 2 | 2020-12-23 07:17:11 |
| 8065 | 2005-07-28 17:15:48.000 | 413 413 | 220 220 | 2005-08-04 15:49:48.000 | 2 2 | 2020-12-23 07:17:15 |
| 8398 | 2005-07-29 06:12:40.000 | 348 348 | 220 220 | 2005-08-02 05:01:40.000 | 2 2 | 2020-12-23 07:17:20 |
| 9384 | 2005-07-30 19:25:35.000 | 2313 2313 | 220 220 | 2005-08-08 21:50:35.000 | 1 1 | 2020-12-23 07:17:35 |
| 9455 | 2005-07-30 22:20:29.000 | 2647 2647 | 220 220 | 2005-08-08 20:08:29.000 | 1 1 | 2020-12-23 07:17:36 |
| 10099 | 2005-07-31 20:47:14.000 | 1960 1960 | 220 220 | 2005-08-02 17:25:14.000 | 1 1 | 2020-12-23 07:17:45 |
| 10778 | 2005-08-01 21:11:39.000 | 1939 1939 | 220 220 | 2005-08-02 22:59:39.000 | 2 2 | 2020-12-23 07:17:55 |
| 10948 | 2005-08-02 03:23:23.000 | 4429 4429 | 220 220 | 2005-08-05 23:18:23.000 | 1 1 | 2020-12-23 07:17:57 |
| 11037 | 2005-08-02 05:58:12.000 | 4291 4291 | 220 220 | 2005-08-07 11:26:12.000 | 1 1 | 2020-12-23 07:17:58 |
| 11153 | 2005-08-02 09:54:19.000 | 1546 1546 | 220 220 | 2005-08-10 14:57:19.000 | 1 1 | 2020-12-23 07:18:00 |
| 11622 | 2005-08-17 04:15:46.000 | 499 499 | 220 220 | 2005-08-24 04:48:46.000 | 1 1 | 2020-12-23 07:18:06 |
| 11947 | 2005-08-17 17:08:13.000 | 2928 2928 | 220 220 | 2005-08-23 21:53:13.000 | 1 1 | 2020-12-23 07:18:11 |
| 12407 | 2005-08-18 09:39:26.000 | 391 391 | 220 220 | 2005-08-24 05:19:26.000 | 2 2 | 2020-12-23 07:18:17 |
| 12896 | 2005-08-19 03:52:44.000 | 148 148 | 220 220 | 2005-08-24 22:27:44.000 | 1 1 | 2020-12-23 07:18:24 |
| 13123 | 2005-08-19 11:55:13.000 | 2804 2804 | 220 220 | 2005-08-21 05:55:13.000 | 2 2 | 2020-12-23 07:18:27 |
| 13281 | 2005-08-19 18:07:47.000 | 113 113 | 220 220 | 2005-08-20 21:51:47.000 | 2 2 | 2020-12-23 07:18:29 |
| 14016 | 2005-08-20 20:52:03.000 | 509 509 | 220 220 | 2005-08-23 18:04:03.000 | 2 2 | 2020-12-23 07:18:41 |
| 15706 | 2005-08-23 10:32:52.000 | 4486 4486 | 220 220 | 2005-08-24 07:03:52.000 | 2 2 | 2020-12-23 07:19:05 |
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) ;