rental
34 rows where customer_id = 46
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 |
|---|---|---|---|---|---|---|
| 401 | 2005-05-27 12:57:55.000 | 2179 2179 | 46 46 | 2005-05-29 17:55:55.000 | 2 2 | 2020-12-23 07:15:25 |
| 432 | 2005-05-27 16:40:29.000 | 1119 1119 | 46 46 | 2005-05-29 16:20:29.000 | 1 1 | 2020-12-23 07:15:25 |
| 938 | 2005-05-30 14:47:31.000 | 1521 1521 | 46 46 | 2005-06-04 10:10:31.000 | 2 2 | 2020-12-23 07:15:32 |
| 1166 | 2005-06-14 23:17:03.000 | 2508 2508 | 46 46 | 2005-06-15 20:43:03.000 | 1 1 | 2020-12-23 07:15:35 |
| 1214 | 2005-06-15 03:18:40.000 | 4482 4482 | 46 46 | 2005-06-20 07:32:40.000 | 1 1 | 2020-12-23 07:15:36 |
| 2144 | 2005-06-17 22:05:40.000 | 3303 3303 | 46 46 | 2005-06-21 02:53:40.000 | 1 1 | 2020-12-23 07:15:49 |
| 2203 | 2005-06-18 02:10:42.000 | 1347 1347 | 46 46 | 2005-06-22 06:25:42.000 | 2 2 | 2020-12-23 07:15:50 |
| 2965 | 2005-06-20 07:33:38.000 | 27 27 | 46 46 | 2005-06-29 11:45:38.000 | 1 1 | 2020-12-23 07:16:00 |
| 2975 | 2005-06-20 08:06:18.000 | 4534 4534 | 46 46 | 2005-06-21 08:01:18.000 | 1 1 | 2020-12-23 07:16:00 |
| 3439 | 2005-06-21 19:36:15.000 | 1529 1529 | 46 46 | 2005-06-23 14:54:15.000 | 2 2 | 2020-12-23 07:16:07 |
| 3855 | 2005-07-06 17:03:48.000 | 2931 2931 | 46 46 | 2005-07-12 14:32:48.000 | 1 1 | 2020-12-23 07:16:13 |
| 3916 | 2005-07-06 20:18:50.000 | 3198 3198 | 46 46 | 2005-07-12 21:56:50.000 | 1 1 | 2020-12-23 07:16:14 |
| 5698 | 2005-07-10 09:47:00.000 | 639 639 | 46 46 | 2005-07-16 06:26:00.000 | 1 1 | 2020-12-23 07:16:41 |
| 7336 | 2005-07-27 14:11:45.000 | 2706 2706 | 46 46 | 2005-07-28 11:00:45.000 | 2 2 | 2020-12-23 07:17:05 |
| 8152 | 2005-07-28 20:53:05.000 | 2557 2557 | 46 46 | 2005-08-06 20:03:05.000 | 2 2 | 2020-12-23 07:17:17 |
| 9045 | 2005-07-30 06:36:57.000 | 4521 4521 | 46 46 | 2005-08-08 01:51:57.000 | 1 1 | 2020-12-23 07:17:30 |
| 9806 | 2005-07-31 11:13:49.000 | 245 245 | 46 46 | 2005-08-04 06:18:49.000 | 1 1 | 2020-12-23 07:17:41 |
| 10088 | 2005-07-31 20:16:21.000 | 4293 4293 | 46 46 | 2005-08-01 22:47:21.000 | 2 2 | 2020-12-23 07:17:45 |
| 10428 | 2005-08-01 08:30:11.000 | 4245 4245 | 46 46 | 2005-08-02 09:30:11.000 | 2 2 | 2020-12-23 07:17:50 |
| 10803 | 2005-08-01 22:22:07.000 | 3318 3318 | 46 46 | 2005-08-08 02:37:07.000 | 2 2 | 2020-12-23 07:17:55 |
| 10827 | 2005-08-01 23:13:00.000 | 1590 1590 | 46 46 | 2005-08-08 02:51:00.000 | 1 1 | 2020-12-23 07:17:55 |
| 11721 | 2005-08-17 07:49:17.000 | 1923 1923 | 46 46 | 2005-08-18 04:08:17.000 | 1 1 | 2020-12-23 07:18:08 |
| 12095 | 2005-08-17 22:32:37.000 | 1089 1089 | 46 46 | 2005-08-20 04:00:37.000 | 1 1 | 2020-12-23 07:18:13 |
| 12238 | 2005-08-18 03:25:08.000 | 4043 4043 | 46 46 | 2005-08-20 02:41:08.000 | 2 2 | 2020-12-23 07:18:15 |
| 12280 | 2005-08-18 04:49:27.000 | 4032 4032 | 46 46 | 2005-08-21 03:39:27.000 | 2 2 | 2020-12-23 07:18:15 |
| 12298 | 2005-08-18 05:30:31.000 | 904 904 | 46 46 | 2005-08-27 07:33:31.000 | 1 1 | 2020-12-23 07:18:15 |
| 12455 | 2005-08-18 11:19:47.000 | 4478 4478 | 46 46 | 2005-08-22 16:08:47.000 | 2 2 | 2020-12-23 07:18:17 |
| 13226 | 2005-08-19 16:05:36.000 | 2850 2850 | 46 46 | 2005-08-21 10:07:36.000 | 2 2 | 2020-12-23 07:18:29 |
| 14144 | 2005-08-21 02:10:57.000 | 2366 2366 | 46 46 | 2005-08-28 01:02:57.000 | 1 1 | 2020-12-23 07:18:43 |
| 14528 | 2005-08-21 15:08:05.000 | 4305 4305 | 46 46 | 2005-08-26 15:58:05.000 | 2 2 | 2020-12-23 07:18:48 |
| 14940 | 2005-08-22 05:54:03.000 | 2635 2635 | 46 46 | 2005-08-24 05:52:03.000 | 2 2 | 2020-12-23 07:18:54 |
| 15438 | 2005-08-23 00:31:57.000 | 2030 2030 | 46 46 | 2005-08-26 20:02:57.000 | 1 1 | 2020-12-23 07:19:01 |
| 15708 | 2005-08-23 10:35:51.000 | 1974 1974 | 46 46 | 2005-08-27 16:02:51.000 | 1 1 | 2020-12-23 07:19:05 |
| 15758 | 2005-08-23 12:47:26.000 | 152 152 | 46 46 | 2005-08-29 11:05:26.000 | 2 2 | 2020-12-23 07:19:06 |
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) ;