rental
26 rows where customer_id = 149
This data as json, xlsx, CSV (advanced)
Suggested facets: staff_id, rental_date (date), return_date (date), last_update (date)
| rental_id ▼ | rental_date | inventory_id | customer_id | return_date | staff_id | last_update |
|---|---|---|---|---|---|---|
| 764 | 2005-05-29 11:37:35.000 | 1069 1069 | 149 149 | 2005-05-31 16:47:35.000 | 1 1 | 2020-12-23 07:15:30 |
| 1521 | 2005-06-15 23:58:53.000 | 4299 4299 | 149 149 | 2005-06-18 03:10:53.000 | 1 1 | 2020-12-23 07:15:40 |
| 1800 | 2005-06-16 20:18:46.000 | 2058 2058 | 149 149 | 2005-06-20 17:12:46.000 | 1 1 | 2020-12-23 07:15:44 |
| 1996 | 2005-06-17 11:17:45.000 | 3074 3074 | 149 149 | 2005-06-26 09:42:45.000 | 1 1 | 2020-12-23 07:15:47 |
| 2194 | 2005-06-18 01:41:37.000 | 1827 1827 | 149 149 | 2005-06-25 04:27:37.000 | 1 1 | 2020-12-23 07:15:50 |
| 2305 | 2005-06-18 08:31:18.000 | 622 622 | 149 149 | 2005-06-24 06:18:18.000 | 2 2 | 2020-12-23 07:15:51 |
| 2383 | 2005-06-18 15:17:59.000 | 2459 2459 | 149 149 | 2005-06-26 18:42:59.000 | 2 2 | 2020-12-23 07:15:52 |
| 2752 | 2005-06-19 16:44:18.000 | 386 386 | 149 149 | 2005-06-22 12:40:18.000 | 2 2 | 2020-12-23 07:15:57 |
| 3894 | 2005-07-06 19:01:39.000 | 2087 2087 | 149 149 | 2005-07-12 21:35:39.000 | 2 2 | 2020-12-23 07:16:14 |
| 3939 | 2005-07-06 21:16:32.000 | 3627 3627 | 149 149 | 2005-07-11 03:12:32.000 | 2 2 | 2020-12-23 07:16:15 |
| 4766 | 2005-07-08 15:16:04.000 | 1057 1057 | 149 149 | 2005-07-15 11:04:04.000 | 2 2 | 2020-12-23 07:16:27 |
| 4837 | 2005-07-08 18:09:12.000 | 1944 1944 | 149 149 | 2005-07-11 16:40:12.000 | 1 1 | 2020-12-23 07:16:28 |
| 5091 | 2005-07-09 05:52:54.000 | 4572 4572 | 149 149 | 2005-07-10 02:49:54.000 | 1 1 | 2020-12-23 07:16:32 |
| 5298 | 2005-07-09 15:36:17.000 | 3491 3491 | 149 149 | 2005-07-18 19:07:17.000 | 2 2 | 2020-12-23 07:16:35 |
| 6356 | 2005-07-11 20:57:48.000 | 2645 2645 | 149 149 | 2005-07-12 22:40:48.000 | 2 2 | 2020-12-23 07:16:50 |
| 6940 | 2005-07-26 23:18:35.000 | 3876 3876 | 149 149 | 2005-08-05 01:44:35.000 | 2 2 | 2020-12-23 07:16:59 |
| 7559 | 2005-07-27 22:20:03.000 | 661 661 | 149 149 | 2005-08-06 00:26:03.000 | 2 2 | 2020-12-23 07:17:08 |
| 7989 | 2005-07-28 14:39:05.000 | 3196 3196 | 149 149 | 2005-08-05 13:58:05.000 | 2 2 | 2020-12-23 07:17:14 |
| 10154 | 2005-07-31 22:30:49.000 | 2745 2745 | 149 149 | 2005-08-07 03:05:49.000 | 2 2 | 2020-12-23 07:17:46 |
| 10737 | 2005-08-01 19:31:24.000 | 1773 1773 | 149 149 | 2005-08-10 19:17:24.000 | 1 1 | 2020-12-23 07:17:54 |
| 10967 | 2005-08-02 04:02:16.000 | 683 683 | 149 149 | 2005-08-09 07:57:16.000 | 1 1 | 2020-12-23 07:17:57 |
| 11561 | 2005-08-17 01:23:09.000 | 189 189 | 149 149 | 2005-08-23 21:02:09.000 | 2 2 | 2020-12-23 07:18:05 |
| 12000 | 2005-08-17 18:49:44.000 | 2256 2256 | 149 149 | 2005-08-24 16:34:44.000 | 2 2 | 2020-12-23 07:18:11 |
| 14771 | 2005-08-21 23:50:15.000 | 2665 2665 | 149 149 | 2005-08-28 22:55:15.000 | 2 2 | 2020-12-23 07:18:51 |
| 15479 | 2005-08-23 01:50:53.000 | 4182 4182 | 149 149 | 2005-08-29 00:53:53.000 | 1 1 | 2020-12-23 07:19:02 |
| 15562 | 2005-08-23 05:04:33.000 | 4238 4238 | 149 149 | 2005-08-27 09:58:33.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) ;