rental
28 rows where customer_id = 266
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 |
|---|---|---|---|---|---|---|
| 86 | 2005-05-25 13:36:12.000 | 2275 2275 | 266 266 | 2005-05-30 14:53:12.000 | 1 1 | 2020-12-23 07:15:21 |
| 651 | 2005-05-28 19:46:50.000 | 739 739 | 266 266 | 2005-05-30 16:29:50.000 | 1 1 | 2020-12-23 07:15:28 |
| 1280 | 2005-06-15 08:16:06.000 | 2597 2597 | 266 266 | 2005-06-21 04:10:06.000 | 2 2 | 2020-12-23 07:15:37 |
| 2065 | 2005-06-17 16:03:46.000 | 844 844 | 266 266 | 2005-06-22 16:41:46.000 | 2 2 | 2020-12-23 07:15:48 |
| 3002 | 2005-06-20 09:56:12.000 | 2749 2749 | 266 266 | 2005-06-24 12:15:12.000 | 2 2 | 2020-12-23 07:16:01 |
| 3059 | 2005-06-20 13:38:41.000 | 2911 2911 | 266 266 | 2005-06-21 10:13:41.000 | 2 2 | 2020-12-23 07:16:02 |
| 3585 | 2005-07-06 04:22:36.000 | 2726 2726 | 266 266 | 2005-07-09 06:16:36.000 | 2 2 | 2020-12-23 07:16:09 |
| 5362 | 2005-07-09 18:16:08.000 | 24 24 | 266 266 | 2005-07-18 18:27:08.000 | 1 1 | 2020-12-23 07:16:36 |
| 5577 | 2005-07-10 03:58:40.000 | 3779 3779 | 266 266 | 2005-07-14 03:36:40.000 | 1 1 | 2020-12-23 07:16:39 |
| 8492 | 2005-07-29 09:04:17.000 | 4553 4553 | 266 266 | 2005-08-02 08:48:17.000 | 2 2 | 2020-12-23 07:17:22 |
| 9109 | 2005-07-30 08:58:24.000 | 787 787 | 266 266 | 2005-08-07 06:56:24.000 | 1 1 | 2020-12-23 07:17:31 |
| 10747 | 2005-08-01 19:59:41.000 | 4527 4527 | 266 266 | 2005-08-10 00:00:41.000 | 2 2 | 2020-12-23 07:17:54 |
| 10910 | 2005-08-02 01:54:34.000 | 2428 2428 | 266 266 | 2005-08-10 04:04:34.000 | 2 2 | 2020-12-23 07:17:56 |
| 11233 | 2005-08-02 13:06:11.000 | 2221 2221 | 266 266 | 2005-08-08 15:02:11.000 | 1 1 | 2020-12-23 07:18:01 |
| 11321 | 2005-08-02 16:15:07.000 | 205 205 | 266 266 | 2005-08-04 20:35:07.000 | 2 2 | 2020-12-23 07:18:02 |
| 11626 | 2005-08-17 04:25:42.000 | 4279 4279 | 266 266 | 2005-08-23 05:46:42.000 | 1 1 | 2020-12-23 07:18:06 |
| 11726 | 2005-08-17 08:11:10.000 | 4438 4438 | 266 266 | 2005-08-22 05:45:10.000 | 1 1 | 2020-12-23 07:18:08 |
| 12255 | 2005-08-18 04:07:20.000 | 2100 2100 | 266 266 | 2005-08-21 22:19:20.000 | 1 1 | 2020-12-23 07:18:15 |
| 12378 | 2005-08-18 08:26:13.000 | 4418 4418 | 266 266 | 2005-08-19 07:21:13.000 | 1 1 | 2020-12-23 07:18:16 |
| 12405 | 2005-08-18 09:37:30.000 | 228 228 | 266 266 | 2005-08-27 13:11:30.000 | 2 2 | 2020-12-23 07:18:17 |
| 12715 | 2005-08-18 21:09:38.000 | 3768 3768 | 266 266 | 2005-08-21 20:25:38.000 | 1 1 | 2020-12-23 07:18:21 |
| 13468 | 2005-08-20 00:56:44.000 | 1851 1851 | 266 266 | 2005-08-29 06:26:44.000 | 1 1 | 2020-12-23 07:18:32 |
| 13556 | 2005-08-20 04:10:26.000 | 3914 3914 | 266 266 | 2005-08-26 06:45:26.000 | 2 2 | 2020-12-23 07:18:34 |
| 14080 | 2005-08-20 23:29:50.000 | 3962 3962 | 266 266 | 2005-08-26 00:33:50.000 | 1 1 | 2020-12-23 07:18:42 |
| 14492 | 2005-08-21 13:59:08.000 | 1591 1591 | 266 266 | 2005-08-23 11:09:08.000 | 1 1 | 2020-12-23 07:18:48 |
| 14877 | 2005-08-22 03:39:56.000 | 974 974 | 266 266 | 2005-08-24 03:41:56.000 | 2 2 | 2020-12-23 07:18:53 |
| 15181 | 2005-08-22 15:46:20.000 | 3900 3900 | 266 266 | 2005-08-27 09:56:20.000 | 1 1 | 2020-12-23 07:18:57 |
| 15346 | 2005-08-22 21:06:00.000 | 3525 3525 | 266 266 | 2005-08-28 22:08:00.000 | 1 1 | 2020-12-23 07:19:00 |
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) ;