rental
30 rows where customer_id = 319
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 |
|---|---|---|---|---|---|---|
| 15 | 2005-05-25 00:39:22.000 | 3049 3049 | 319 319 | 2005-06-03 03:30:22.000 | 1 1 | 2020-12-23 07:15:20 |
| 149 | 2005-05-26 00:28:05.000 | 1084 1084 | 319 319 | 2005-06-02 21:30:05.000 | 2 2 | 2020-12-23 07:15:22 |
| 439 | 2005-05-27 17:54:48.000 | 354 354 | 319 319 | 2005-06-02 23:01:48.000 | 2 2 | 2020-12-23 07:15:25 |
| 1632 | 2005-06-16 08:03:42.000 | 1518 1518 | 319 319 | 2005-06-17 03:40:42.000 | 1 1 | 2020-12-23 07:15:41 |
| 1892 | 2005-06-17 04:17:33.000 | 139 139 | 319 319 | 2005-06-20 00:06:33.000 | 1 1 | 2020-12-23 07:15:45 |
| 2021 | 2005-06-17 12:41:18.000 | 2852 2852 | 319 319 | 2005-06-23 17:17:18.000 | 2 2 | 2020-12-23 07:15:47 |
| 2703 | 2005-06-19 13:36:06.000 | 4080 4080 | 319 319 | 2005-06-28 08:26:06.000 | 2 2 | 2020-12-23 07:15:57 |
| 2884 | 2005-06-20 01:31:16.000 | 3384 3384 | 319 319 | 2005-06-21 04:03:16.000 | 2 2 | 2020-12-23 07:15:59 |
| 3256 | 2005-06-21 03:45:42.000 | 1235 1235 | 319 319 | 2005-06-30 02:51:42.000 | 2 2 | 2020-12-23 07:16:04 |
| 4119 | 2005-07-07 07:06:03.000 | 2078 2078 | 319 319 | 2005-07-13 01:56:03.000 | 2 2 | 2020-12-23 07:16:17 |
| 4295 | 2005-07-07 16:08:51.000 | 2490 2490 | 319 319 | 2005-07-13 13:06:51.000 | 2 2 | 2020-12-23 07:16:20 |
| 4630 | 2005-07-08 08:33:38.000 | 3446 3446 | 319 319 | 2005-07-09 13:09:38.000 | 2 2 | 2020-12-23 07:16:25 |
| 5791 | 2005-07-10 14:16:22.000 | 2795 2795 | 319 319 | 2005-07-19 13:38:22.000 | 2 2 | 2020-12-23 07:16:42 |
| 5882 | 2005-07-10 19:20:34.000 | 2830 2830 | 319 319 | 2005-07-11 18:39:34.000 | 2 2 | 2020-12-23 07:16:44 |
| 6132 | 2005-07-11 08:24:44.000 | 3229 3229 | 319 319 | 2005-07-13 06:41:44.000 | 1 1 | 2020-12-23 07:16:47 |
| 6195 | 2005-07-11 12:00:32.000 | 4193 4193 | 319 319 | 2005-07-16 15:00:32.000 | 2 2 | 2020-12-23 07:16:48 |
| 6255 | 2005-07-11 15:11:33.000 | 1459 1459 | 319 319 | 2005-07-15 19:55:33.000 | 2 2 | 2020-12-23 07:16:48 |
| 6485 | 2005-07-12 02:07:59.000 | 1224 1224 | 319 319 | 2005-07-19 22:56:59.000 | 1 1 | 2020-12-23 07:16:52 |
| 7953 | 2005-07-28 13:24:32.000 | 4471 4471 | 319 319 | 2005-08-05 16:09:32.000 | 2 2 | 2020-12-23 07:17:14 |
| 9017 | 2005-07-30 05:26:20.000 | 3325 3325 | 319 319 | 2005-08-04 10:00:20.000 | 2 2 | 2020-12-23 07:17:29 |
| 9044 | 2005-07-30 06:35:21.000 | 3796 3796 | 319 319 | 2005-07-31 10:27:21.000 | 1 1 | 2020-12-23 07:17:30 |
| 11575 | 2005-08-17 01:50:26.000 | 1725 1725 | 319 319 | 2005-08-18 00:43:26.000 | 1 1 | 2020-12-23 07:18:06 |
| 11598 | 2005-08-17 03:03:07.000 | 1949 1949 | 319 319 | 2005-08-22 21:05:07.000 | 2 2 | 2020-12-23 07:18:06 |
| 11955 | 2005-08-17 17:21:35.000 | 1221 1221 | 319 319 | 2005-08-24 22:06:35.000 | 1 1 | 2020-12-23 07:18:11 |
| 11994 | 2005-08-17 18:29:35.000 | 3428 3428 | 319 319 | 2005-08-25 23:39:35.000 | 1 1 | 2020-12-23 07:18:11 |
| 12018 | 2005-08-17 19:44:46.000 | 1921 1921 | 319 319 | 2005-08-26 20:24:46.000 | 1 1 | 2020-12-23 07:18:12 |
| 12424 | 2005-08-18 10:16:57.000 | 2055 2055 | 319 319 | 2005-08-27 04:41:57.000 | 1 1 | 2020-12-23 07:18:17 |
| 13548 | 2005-08-20 03:53:20.000 | 4389 4389 | 319 319 | 2005-08-27 21:54:20.000 | 1 1 | 2020-12-23 07:18:33 |
| 14828 | 2005-08-22 01:34:05.000 | 4114 4114 | 319 319 | 2005-08-27 06:27:05.000 | 2 2 | 2020-12-23 07:18:52 |
| 15396 | 2005-08-22 23:07:57.000 | 4050 4050 | 319 319 | 2005-08-28 19:39:57.000 | 2 2 | 2020-12-23 07:19:01 |
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) ;