rental
25 rows where customer_id = 10
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 |
|---|---|---|---|---|---|---|
| 1140 | 2005-05-31 19:36:30.000 | 3731 3731 | 10 10 | 2005-06-07 18:33:30.000 | 2 2 | 2020-12-23 07:15:35 |
| 1801 | 2005-06-16 20:21:53.000 | 1015 1015 | 10 10 | 2005-06-18 23:18:53.000 | 1 1 | 2020-12-23 07:15:44 |
| 1995 | 2005-06-17 11:11:14.000 | 1866 1866 | 10 10 | 2005-06-26 16:37:14.000 | 1 1 | 2020-12-23 07:15:47 |
| 2222 | 2005-06-18 03:26:23.000 | 3834 3834 | 10 10 | 2005-06-26 08:50:23.000 | 2 2 | 2020-12-23 07:15:50 |
| 2814 | 2005-06-19 20:01:59.000 | 1783 1783 | 10 10 | 2005-06-26 01:28:59.000 | 2 2 | 2020-12-23 07:15:58 |
| 2865 | 2005-06-20 00:00:55.000 | 1569 1569 | 10 10 | 2005-06-21 02:20:55.000 | 1 1 | 2020-12-23 07:15:59 |
| 3790 | 2005-07-06 14:13:45.000 | 1711 1711 | 10 10 | 2005-07-14 13:35:45.000 | 1 1 | 2020-12-23 07:16:12 |
| 4042 | 2005-07-07 03:06:40.000 | 50 50 | 10 10 | 2005-07-10 02:37:40.000 | 1 1 | 2020-12-23 07:16:16 |
| 4255 | 2005-07-07 14:14:13.000 | 749 749 | 10 10 | 2005-07-12 18:32:13.000 | 1 1 | 2020-12-23 07:16:19 |
| 5038 | 2005-07-09 03:12:52.000 | 3086 3086 | 10 10 | 2005-07-17 22:27:52.000 | 2 2 | 2020-12-23 07:16:31 |
| 5068 | 2005-07-09 04:53:18.000 | 2937 2937 | 10 10 | 2005-07-13 09:21:18.000 | 1 1 | 2020-12-23 07:16:32 |
| 5444 | 2005-07-09 21:58:57.000 | 2968 2968 | 10 10 | 2005-07-11 03:09:57.000 | 2 2 | 2020-12-23 07:16:37 |
| 5905 | 2005-07-10 20:41:09.000 | 3891 3891 | 10 10 | 2005-07-19 14:49:09.000 | 1 1 | 2020-12-23 07:16:44 |
| 7738 | 2005-07-28 05:21:42.000 | 80 80 | 10 10 | 2005-08-03 09:46:42.000 | 2 2 | 2020-12-23 07:17:11 |
| 8001 | 2005-07-28 15:10:55.000 | 2570 2570 | 10 10 | 2005-08-05 18:23:55.000 | 1 1 | 2020-12-23 07:17:14 |
| 8188 | 2005-07-28 22:34:12.000 | 3826 3826 | 10 10 | 2005-08-01 02:32:12.000 | 2 2 | 2020-12-23 07:17:17 |
| 9935 | 2005-07-31 15:27:07.000 | 2247 2247 | 10 10 | 2005-08-05 11:23:07.000 | 1 1 | 2020-12-23 07:17:43 |
| 10671 | 2005-08-01 17:09:59.000 | 4430 4430 | 10 10 | 2005-08-09 21:36:59.000 | 1 1 | 2020-12-23 07:17:53 |
| 11289 | 2005-08-02 14:55:00.000 | 2869 2869 | 10 10 | 2005-08-11 13:57:00.000 | 1 1 | 2020-12-23 07:18:01 |
| 11405 | 2005-08-02 19:13:39.000 | 418 418 | 10 10 | 2005-08-07 19:19:39.000 | 2 2 | 2020-12-23 07:18:03 |
| 12031 | 2005-08-17 20:11:35.000 | 2793 2793 | 10 10 | 2005-08-24 23:48:35.000 | 2 2 | 2020-12-23 07:18:12 |
| 12400 | 2005-08-18 09:19:12.000 | 1767 1767 | 10 10 | 2005-08-26 06:52:12.000 | 1 1 | 2020-12-23 07:18:17 |
| 13316 | 2005-08-19 19:23:30.000 | 4450 4450 | 10 10 | 2005-08-22 23:37:30.000 | 1 1 | 2020-12-23 07:18:30 |
| 13917 | 2005-08-20 16:43:28.000 | 4326 4326 | 10 10 | 2005-08-29 16:44:28.000 | 2 2 | 2020-12-23 07:18:39 |
| 15370 | 2005-08-22 21:59:29.000 | 67 67 | 10 10 | 2005-08-27 16:32:29.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) ;