rental
32 rows where customer_id = 122
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 |
|---|---|---|---|---|---|---|
| 853 | 2005-05-30 01:43:31.000 | 3693 3693 | 122 122 | 2005-06-01 02:05:31.000 | 1 1 | 2020-12-23 07:15:31 |
| 1135 | 2005-05-31 19:15:11.000 | 3118 3118 | 122 122 | 2005-06-01 14:44:11.000 | 2 2 | 2020-12-23 07:15:35 |
| 1211 | 2005-06-15 03:01:20.000 | 3360 3360 | 122 122 | 2005-06-18 07:52:20.000 | 2 2 | 2020-12-23 07:15:36 |
| 1442 | 2005-06-15 18:55:34.000 | 3912 3912 | 122 122 | 2005-06-22 20:41:34.000 | 2 2 | 2020-12-23 07:15:39 |
| 2240 | 2005-06-18 04:28:27.000 | 1409 1409 | 122 122 | 2005-06-22 07:48:27.000 | 2 2 | 2020-12-23 07:15:50 |
| 2253 | 2005-06-18 05:11:43.000 | 3719 3719 | 122 122 | 2005-06-25 03:30:43.000 | 2 2 | 2020-12-23 07:15:50 |
| 2482 | 2005-06-18 21:10:44.000 | 452 452 | 122 122 | 2005-06-19 20:39:44.000 | 1 1 | 2020-12-23 07:15:54 |
| 2595 | 2005-06-19 05:43:55.000 | 3197 3197 | 122 122 | 2005-06-25 10:20:55.000 | 1 1 | 2020-12-23 07:15:55 |
| 2834 | 2005-06-19 21:41:46.000 | 2876 2876 | 122 122 | 2005-06-24 20:47:46.000 | 1 1 | 2020-12-23 07:15:58 |
| 3778 | 2005-07-06 13:44:48.000 | 2181 2181 | 122 122 | 2005-07-13 09:31:48.000 | 2 2 | 2020-12-23 07:16:12 |
| 3986 | 2005-07-06 23:25:13.000 | 3737 3737 | 122 122 | 2005-07-09 21:26:13.000 | 2 2 | 2020-12-23 07:16:15 |
| 4239 | 2005-07-07 13:23:17.000 | 3866 3866 | 122 122 | 2005-07-13 17:49:17.000 | 1 1 | 2020-12-23 07:16:19 |
| 4568 | 2005-07-08 05:23:59.000 | 2626 2626 | 122 122 | 2005-07-09 06:07:59.000 | 1 1 | 2020-12-23 07:16:24 |
| 5235 | 2005-07-09 12:54:25.000 | 1044 1044 | 122 122 | 2005-07-18 16:28:25.000 | 1 1 | 2020-12-23 07:16:34 |
| 6231 | 2005-07-11 14:02:36.000 | 2526 2526 | 122 122 | 2005-07-13 19:04:36.000 | 2 2 | 2020-12-23 07:16:48 |
| 6427 | 2005-07-11 23:57:34.000 | 1043 1043 | 122 122 | 2005-07-14 18:05:34.000 | 2 2 | 2020-12-23 07:16:51 |
| 6436 | 2005-07-12 00:18:42.000 | 3758 3758 | 122 122 | 2005-07-13 03:57:42.000 | 2 2 | 2020-12-23 07:16:51 |
| 6974 | 2005-07-27 00:39:16.000 | 2924 2924 | 122 122 | 2005-08-04 01:59:16.000 | 2 2 | 2020-12-23 07:16:59 |
| 7267 | 2005-07-27 11:22:55.000 | 3661 3661 | 122 122 | 2005-08-01 08:13:55.000 | 1 1 | 2020-12-23 07:17:04 |
| 7950 | 2005-07-28 13:21:00.000 | 2286 2286 | 122 122 | 2005-08-05 18:47:00.000 | 2 2 | 2020-12-23 07:17:14 |
| 8077 | 2005-07-28 17:54:35.000 | 3253 3253 | 122 122 | 2005-07-29 19:28:35.000 | 2 2 | 2020-12-23 07:17:16 |
| 8177 | 2005-07-28 21:43:54.000 | 3696 3696 | 122 122 | 2005-08-02 22:38:54.000 | 2 2 | 2020-12-23 07:17:17 |
| 8772 | 2005-07-29 19:55:25.000 | 3526 3526 | 122 122 | 2005-08-05 18:48:25.000 | 1 1 | 2020-12-23 07:17:26 |
| 9910 | 2005-07-31 14:47:57.000 | 368 368 | 122 122 | 2005-08-05 18:20:57.000 | 1 1 | 2020-12-23 07:17:43 |
| 10626 | 2005-08-01 15:32:41.000 | 1042 1042 | 122 122 | 2005-08-05 18:08:41.000 | 1 1 | 2020-12-23 07:17:53 |
| 11044 | 2005-08-02 06:05:27.000 | 2922 2922 | 122 122 | 2005-08-06 05:15:27.000 | 1 1 | 2020-12-23 07:17:58 |
| 11197 | 2005-08-02 11:45:07.000 | 3041 3041 | 122 122 | 2005-08-03 09:07:07.000 | 1 1 | 2020-12-23 07:18:00 |
| 12476 | 2005-08-18 12:22:40.000 | 2784 2784 | 122 122 | 2005-08-20 17:29:40.000 | 2 2 | 2020-12-23 07:18:18 |
| 12711 | 2005-08-18 21:03:32.000 | 2530 2530 | 122 122 | 2005-08-26 17:31:32.000 | 1 1 | 2020-12-23 07:18:21 |
| 13171 | 2005-08-19 13:48:54.000 | 1765 1765 | 122 122 | 2005-08-27 18:57:54.000 | 1 1 | 2020-12-23 07:18:28 |
| 13812 | 2005-08-20 13:01:43.000 | 2788 2788 | 122 122 | 2005-08-22 16:32:43.000 | 2 2 | 2020-12-23 07:18:38 |
| 14666 | 2005-08-21 19:51:09.000 | 2560 2560 | 122 122 | 2005-08-30 22:42:09.000 | 2 2 | 2020-12-23 07:18:50 |
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) ;