rental
30 rows where customer_id = 23
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 |
|---|---|---|---|---|---|---|
| 129 | 2005-05-25 21:20:03.000 | 4154 4154 | 23 23 | 2005-06-04 01:25:03.000 | 2 2 | 2020-12-23 07:15:21 |
| 654 | 2005-05-28 20:15:30.000 | 2312 2312 | 23 23 | 2005-05-30 22:02:30.000 | 2 2 | 2020-12-23 07:15:28 |
| 1090 | 2005-05-31 12:03:44.000 | 3329 3329 | 23 23 | 2005-06-02 15:54:44.000 | 2 2 | 2020-12-23 07:15:34 |
| 2753 | 2005-06-19 16:44:35.000 | 2408 2408 | 23 23 | 2005-06-24 13:45:35.000 | 1 1 | 2020-12-23 07:15:57 |
| 2827 | 2005-06-19 20:50:01.000 | 2745 2745 | 23 23 | 2005-06-20 18:54:01.000 | 2 2 | 2020-12-23 07:15:58 |
| 3015 | 2005-06-20 10:48:56.000 | 1311 1311 | 23 23 | 2005-06-26 11:30:56.000 | 2 2 | 2020-12-23 07:16:01 |
| 3055 | 2005-06-20 13:19:58.000 | 1510 1510 | 23 23 | 2005-06-27 14:54:58.000 | 1 1 | 2020-12-23 07:16:01 |
| 3461 | 2005-06-21 21:49:18.000 | 1715 1715 | 23 23 | 2005-06-26 19:51:18.000 | 1 1 | 2020-12-23 07:16:07 |
| 3736 | 2005-07-06 11:43:44.000 | 1515 1515 | 23 23 | 2005-07-13 07:55:44.000 | 2 2 | 2020-12-23 07:16:11 |
| 3781 | 2005-07-06 13:53:41.000 | 3894 3894 | 23 23 | 2005-07-15 10:03:41.000 | 1 1 | 2020-12-23 07:16:12 |
| 4853 | 2005-07-08 18:43:18.000 | 1454 1454 | 23 23 | 2005-07-12 14:28:18.000 | 2 2 | 2020-12-23 07:16:28 |
| 6213 | 2005-07-11 12:43:07.000 | 485 485 | 23 23 | 2005-07-16 07:23:07.000 | 2 2 | 2020-12-23 07:16:48 |
| 6238 | 2005-07-11 14:20:18.000 | 3749 3749 | 23 23 | 2005-07-14 18:34:18.000 | 1 1 | 2020-12-23 07:16:48 |
| 6917 | 2005-07-12 22:30:15.000 | 3048 3048 | 23 23 | 2005-07-20 03:20:15.000 | 1 1 | 2020-12-23 07:16:58 |
| 7155 | 2005-07-27 07:18:46.000 | 171 171 | 23 23 | 2005-08-04 10:28:46.000 | 1 1 | 2020-12-23 07:17:02 |
| 8015 | 2005-07-28 15:33:03.000 | 1814 1814 | 23 23 | 2005-07-30 15:32:03.000 | 2 2 | 2020-12-23 07:17:15 |
| 8718 | 2005-07-29 17:41:14.000 | 137 137 | 23 23 | 2005-08-01 18:22:14.000 | 2 2 | 2020-12-23 07:17:25 |
| 9209 | 2005-07-30 12:55:36.000 | 3940 3940 | 23 23 | 2005-08-03 11:31:36.000 | 2 2 | 2020-12-23 07:17:32 |
| 9255 | 2005-07-30 14:26:46.000 | 1596 1596 | 23 23 | 2005-08-07 18:16:46.000 | 1 1 | 2020-12-23 07:17:33 |
| 9718 | 2005-07-31 08:25:03.000 | 2747 2747 | 23 23 | 2005-08-08 04:16:03.000 | 2 2 | 2020-12-23 07:17:40 |
| 10132 | 2005-07-31 21:50:24.000 | 3934 3934 | 23 23 | 2005-08-07 23:37:24.000 | 2 2 | 2020-12-23 07:17:46 |
| 10898 | 2005-08-02 01:29:57.000 | 3814 3814 | 23 23 | 2005-08-06 00:07:57.000 | 2 2 | 2020-12-23 07:17:56 |
| 11501 | 2005-08-16 23:04:53.000 | 2147 2147 | 23 23 | 2005-08-19 20:57:53.000 | 2 2 | 2020-12-23 07:18:05 |
| 13290 | 2005-08-19 18:31:50.000 | 4174 4174 | 23 23 | 2005-08-25 15:49:50.000 | 2 2 | 2020-12-23 07:18:30 |
| 13331 | 2005-08-19 20:00:25.000 | 3867 3867 | 23 23 | 2005-08-21 17:03:25.000 | 1 1 | 2020-12-23 07:18:30 |
| 13429 | 2005-08-19 23:25:37.000 | 3677 3677 | 23 23 | 2005-08-28 01:04:37.000 | 2 2 | 2020-12-23 07:18:32 |
| 13511 | 2005-08-20 02:21:40.000 | 2973 2973 | 23 23 | 2005-08-21 03:26:40.000 | 1 1 | 2020-12-23 07:18:33 |
| 13557 | 2005-08-20 04:12:41.000 | 2290 2290 | 23 23 | 2005-08-21 02:33:41.000 | 2 2 | 2020-12-23 07:18:34 |
| 14482 | 2005-08-21 13:42:45.000 | 2765 2765 | 23 23 | 2005-08-27 11:55:45.000 | 1 1 | 2020-12-23 07:18:48 |
| 15532 | 2006-02-14 15:16:03.000 | 1061 1061 | 23 23 | 1 1 | 2020-12-23 07:19:02 |
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) ;