rental
29 rows where customer_id = 163
This data as json, xlsx, CSV (advanced)
Suggested facets: rental_date, 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 |
|---|---|---|---|---|---|---|
| 1265 | 2005-06-15 07:00:50.000 | 982 982 | 163 163 | 2005-06-19 12:27:50.000 | 1 1 | 2020-12-23 07:15:37 |
| 2000 | 2005-06-17 11:32:30.000 | 323 323 | 163 163 | 2005-06-22 13:37:30.000 | 1 1 | 2020-12-23 07:15:47 |
| 2110 | 2005-06-17 19:45:49.000 | 3592 3592 | 163 163 | 2005-06-26 18:59:49.000 | 2 2 | 2020-12-23 07:15:48 |
| 2536 | 2005-06-19 01:41:34.000 | 4232 4232 | 163 163 | 2005-06-27 03:11:34.000 | 1 1 | 2020-12-23 07:15:54 |
| 2994 | 2005-06-20 09:17:05.000 | 1290 1290 | 163 163 | 2005-06-29 04:41:05.000 | 1 1 | 2020-12-23 07:16:01 |
| 3179 | 2005-06-20 22:37:59.000 | 2214 2214 | 163 163 | 2005-06-26 22:26:59.000 | 2 2 | 2020-12-23 07:16:03 |
| 3915 | 2005-07-06 20:16:46.000 | 125 125 | 163 163 | 2005-07-10 17:24:46.000 | 1 1 | 2020-12-23 07:16:14 |
| 4126 | 2005-07-07 07:24:11.000 | 3018 3018 | 163 163 | 2005-07-15 07:31:11.000 | 1 1 | 2020-12-23 07:16:17 |
| 5549 | 2005-07-10 02:58:29.000 | 2685 2685 | 163 163 | 2005-07-17 05:24:29.000 | 2 2 | 2020-12-23 07:16:39 |
| 5574 | 2005-07-10 03:54:38.000 | 2307 2307 | 163 163 | 2005-07-19 07:20:38.000 | 2 2 | 2020-12-23 07:16:39 |
| 6109 | 2005-07-11 07:20:57.000 | 3603 3603 | 163 163 | 2005-07-13 07:29:57.000 | 2 2 | 2020-12-23 07:16:47 |
| 6831 | 2005-07-12 18:44:04.000 | 924 924 | 163 163 | 2005-07-16 21:39:04.000 | 2 2 | 2020-12-23 07:16:57 |
| 7303 | 2005-07-27 12:54:39.000 | 1398 1398 | 163 163 | 2005-07-31 09:26:39.000 | 2 2 | 2020-12-23 07:17:04 |
| 7403 | 2005-07-27 16:22:09.000 | 2551 2551 | 163 163 | 2005-08-01 15:32:09.000 | 1 1 | 2020-12-23 07:17:06 |
| 8040 | 2005-07-28 16:39:43.000 | 4543 4543 | 163 163 | 2005-08-02 20:00:43.000 | 2 2 | 2020-12-23 07:17:15 |
| 8063 | 2005-07-28 17:15:11.000 | 935 935 | 163 163 | 2005-08-04 16:45:11.000 | 1 1 | 2020-12-23 07:17:15 |
| 8403 | 2005-07-29 06:26:39.000 | 1360 1360 | 163 163 | 2005-08-02 05:37:39.000 | 1 1 | 2020-12-23 07:17:20 |
| 10245 | 2005-08-01 02:24:09.000 | 2880 2880 | 163 163 | 2005-08-02 02:31:09.000 | 1 1 | 2020-12-23 07:17:47 |
| 11623 | 2005-08-17 04:15:47.000 | 759 759 | 163 163 | 2005-08-19 04:11:47.000 | 2 2 | 2020-12-23 07:18:06 |
| 11754 | 2006-02-14 15:16:03.000 | 3747 3747 | 163 163 | 2 2 | 2020-12-23 07:18:08 | |
| 11940 | 2005-08-17 16:56:28.000 | 1188 1188 | 163 163 | 2005-08-18 15:09:28.000 | 1 1 | 2020-12-23 07:18:10 |
| 12154 | 2005-08-18 00:23:56.000 | 2491 2491 | 163 163 | 2005-08-21 00:31:56.000 | 2 2 | 2020-12-23 07:18:13 |
| 12973 | 2005-08-19 06:48:11.000 | 128 128 | 163 163 | 2005-08-22 07:18:11.000 | 2 2 | 2020-12-23 07:18:25 |
| 13543 | 2005-08-20 03:43:13.000 | 2142 2142 | 163 163 | 2005-08-29 07:14:13.000 | 2 2 | 2020-12-23 07:18:33 |
| 14275 | 2005-08-21 06:30:30.000 | 3238 3238 | 163 163 | 2005-08-25 12:28:30.000 | 1 1 | 2020-12-23 07:18:45 |
| 14427 | 2005-08-21 11:26:06.000 | 2353 2353 | 163 163 | 2005-08-27 10:39:06.000 | 1 1 | 2020-12-23 07:18:47 |
| 15282 | 2006-02-14 15:16:03.000 | 1932 1932 | 163 163 | 1 1 | 2020-12-23 07:18:59 | |
| 15520 | 2005-08-23 03:30:45.000 | 1792 1792 | 163 163 | 2005-09-01 00:20:45.000 | 1 1 | 2020-12-23 07:19:02 |
| 15847 | 2005-08-23 15:39:38.000 | 2287 2287 | 163 163 | 2005-08-24 11:46:38.000 | 1 1 | 2020-12-23 07:19:07 |
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) ;