rental
32 rows where customer_id = 158
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 |
|---|---|---|---|---|---|---|
| 245 | 2005-05-26 13:46:59.000 | 3045 3045 | 158 158 | 2005-05-27 09:58:59.000 | 2 2 | 2020-12-23 07:15:23 |
| 293 | 2005-05-26 20:27:02.000 | 1828 1828 | 158 158 | 2005-06-03 16:45:02.000 | 2 2 | 2020-12-23 07:15:23 |
| 1380 | 2005-06-15 15:13:10.000 | 3376 3376 | 158 158 | 2005-06-18 12:42:10.000 | 2 2 | 2020-12-23 07:15:38 |
| 1790 | 2005-06-16 19:58:40.000 | 1070 1070 | 158 158 | 2005-06-17 19:31:40.000 | 2 2 | 2020-12-23 07:15:44 |
| 2035 | 2005-06-17 13:45:09.000 | 4371 4371 | 158 158 | 2005-06-26 15:30:09.000 | 2 2 | 2020-12-23 07:15:47 |
| 3203 | 2005-06-21 00:34:56.000 | 442 442 | 158 158 | 2005-06-29 23:30:56.000 | 1 1 | 2020-12-23 07:16:03 |
| 4117 | 2005-07-07 06:58:14.000 | 780 780 | 158 158 | 2005-07-16 05:28:14.000 | 1 1 | 2020-12-23 07:16:17 |
| 5672 | 2005-07-10 08:19:38.000 | 2326 2326 | 158 158 | 2005-07-16 06:28:38.000 | 2 2 | 2020-12-23 07:16:40 |
| 5988 | 2005-07-11 00:55:38.000 | 151 151 | 158 158 | 2005-07-13 21:36:38.000 | 2 2 | 2020-12-23 07:16:45 |
| 6416 | 2005-07-11 23:29:14.000 | 1063 1063 | 158 158 | 2005-07-13 20:20:14.000 | 1 1 | 2020-12-23 07:16:51 |
| 6901 | 2005-07-12 21:46:33.000 | 4574 4574 | 158 158 | 2005-07-16 21:36:33.000 | 1 1 | 2020-12-23 07:16:58 |
| 7159 | 2005-07-27 07:24:00.000 | 1220 1220 | 158 158 | 2005-08-05 11:13:00.000 | 1 1 | 2020-12-23 07:17:02 |
| 7732 | 2005-07-28 05:03:32.000 | 3597 3597 | 158 158 | 2005-07-29 10:20:32.000 | 1 1 | 2020-12-23 07:17:11 |
| 7952 | 2005-07-28 13:23:49.000 | 3313 3313 | 158 158 | 2005-08-01 08:50:49.000 | 1 1 | 2020-12-23 07:17:14 |
| 8750 | 2005-07-29 19:14:21.000 | 3157 3157 | 158 158 | 2005-07-31 17:22:21.000 | 2 2 | 2020-12-23 07:17:26 |
| 8957 | 2005-07-30 03:34:10.000 | 811 811 | 158 158 | 2005-08-06 07:05:10.000 | 1 1 | 2020-12-23 07:17:28 |
| 9393 | 2005-07-30 20:04:48.000 | 843 843 | 158 158 | 2005-08-02 15:52:48.000 | 2 2 | 2020-12-23 07:17:35 |
| 9713 | 2005-07-31 08:13:28.000 | 929 929 | 158 158 | 2005-08-07 10:11:28.000 | 1 1 | 2020-12-23 07:17:40 |
| 9801 | 2005-07-31 11:03:13.000 | 3033 3033 | 158 158 | 2005-08-04 10:55:13.000 | 2 2 | 2020-12-23 07:17:41 |
| 11077 | 2005-08-02 07:26:43.000 | 4254 4254 | 158 158 | 2005-08-09 10:34:43.000 | 2 2 | 2020-12-23 07:17:59 |
| 11103 | 2005-08-02 08:09:54.000 | 1879 1879 | 158 158 | 2005-08-07 12:05:54.000 | 1 1 | 2020-12-23 07:17:59 |
| 11272 | 2005-08-02 14:20:27.000 | 4111 4111 | 158 158 | 2005-08-07 12:24:27.000 | 2 2 | 2020-12-23 07:18:01 |
| 11420 | 2005-08-02 19:47:56.000 | 3928 3928 | 158 158 | 2005-08-05 21:48:56.000 | 2 2 | 2020-12-23 07:18:03 |
| 12070 | 2005-08-17 21:46:47.000 | 1357 1357 | 158 158 | 2005-08-22 22:59:47.000 | 1 1 | 2020-12-23 07:18:12 |
| 12421 | 2005-08-18 10:04:06.000 | 4067 4067 | 158 158 | 2005-08-24 08:45:06.000 | 2 2 | 2020-12-23 07:18:17 |
| 13212 | 2005-08-19 15:24:07.000 | 3691 3691 | 158 158 | 2005-08-24 21:03:07.000 | 1 1 | 2020-12-23 07:18:28 |
| 13854 | 2005-08-20 14:48:42.000 | 4192 4192 | 158 158 | 2005-08-21 14:55:42.000 | 2 2 | 2020-12-23 07:18:38 |
| 13926 | 2005-08-20 17:09:27.000 | 932 932 | 158 158 | 2005-08-28 13:42:27.000 | 2 2 | 2020-12-23 07:18:39 |
| 14028 | 2005-08-20 21:23:03.000 | 4061 4061 | 158 158 | 2005-08-25 17:29:03.000 | 2 2 | 2020-12-23 07:18:41 |
| 15763 | 2005-08-23 13:02:59.000 | 124 124 | 158 158 | 2005-08-24 17:45:59.000 | 2 2 | 2020-12-23 07:19:06 |
| 15796 | 2005-08-23 14:12:22.000 | 1425 1425 | 158 158 | 2005-08-28 17:03:22.000 | 2 2 | 2020-12-23 07:19:06 |
| 15802 | 2005-08-23 14:26:51.000 | 41 41 | 158 158 | 2005-08-29 16:28:51.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) ;