rental
24 rows where customer_id = 490
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 |
|---|---|---|---|---|---|---|
| 585 | 2005-05-28 11:50:45.000 | 3544 3544 | 490 490 | 2005-06-03 15:35:45.000 | 2 2 | 2020-12-23 07:15:27 |
| 676 | 2005-05-28 22:27:51.000 | 2329 2329 | 490 490 | 2005-05-29 20:36:51.000 | 2 2 | 2020-12-23 07:15:28 |
| 1665 | 2005-06-16 10:16:02.000 | 2613 2613 | 490 490 | 2005-06-23 09:32:02.000 | 1 1 | 2020-12-23 07:15:42 |
| 3476 | 2005-07-05 23:02:37.000 | 3011 3011 | 490 490 | 2005-07-10 22:17:37.000 | 2 2 | 2020-12-23 07:16:07 |
| 3932 | 2005-07-06 21:06:17.000 | 4396 4396 | 490 490 | 2005-07-07 19:25:17.000 | 2 2 | 2020-12-23 07:16:14 |
| 4083 | 2005-07-07 05:13:15.000 | 3454 3454 | 490 490 | 2005-07-08 09:11:15.000 | 1 1 | 2020-12-23 07:16:17 |
| 4906 | 2005-07-08 20:59:13.000 | 1527 1527 | 490 490 | 2005-07-15 01:12:13.000 | 2 2 | 2020-12-23 07:16:29 |
| 5173 | 2005-07-09 09:31:44.000 | 2848 2848 | 490 490 | 2005-07-15 04:20:44.000 | 2 2 | 2020-12-23 07:16:33 |
| 5489 | 2005-07-10 00:07:03.000 | 2319 2319 | 490 490 | 2005-07-15 19:52:03.000 | 1 1 | 2020-12-23 07:16:38 |
| 5654 | 2005-07-10 07:24:46.000 | 3419 3419 | 490 490 | 2005-07-14 07:39:46.000 | 2 2 | 2020-12-23 07:16:40 |
| 6230 | 2005-07-11 14:02:19.000 | 2260 2260 | 490 490 | 2005-07-17 08:11:19.000 | 2 2 | 2020-12-23 07:16:48 |
| 6803 | 2005-07-12 17:21:49.000 | 2676 2676 | 490 490 | 2005-07-14 18:01:49.000 | 2 2 | 2020-12-23 07:16:57 |
| 6888 | 2005-07-12 21:01:11.000 | 1896 1896 | 490 490 | 2005-07-17 21:49:11.000 | 2 2 | 2020-12-23 07:16:58 |
| 6923 | 2005-07-12 22:40:48.000 | 2642 2642 | 490 490 | 2005-07-19 23:07:48.000 | 2 2 | 2020-12-23 07:16:58 |
| 8552 | 2005-07-29 11:14:02.000 | 1987 1987 | 490 490 | 2005-08-05 14:13:02.000 | 2 2 | 2020-12-23 07:17:23 |
| 9108 | 2005-07-30 08:56:36.000 | 3977 3977 | 490 490 | 2005-08-04 11:07:36.000 | 1 1 | 2020-12-23 07:17:31 |
| 9554 | 2005-07-31 02:06:49.000 | 2581 2581 | 490 490 | 2005-08-01 22:27:49.000 | 1 1 | 2020-12-23 07:17:37 |
| 10786 | 2005-08-01 21:29:34.000 | 50 50 | 490 490 | 2005-08-10 17:27:34.000 | 1 1 | 2020-12-23 07:17:55 |
| 10955 | 2005-08-02 03:32:34.000 | 618 618 | 490 490 | 2005-08-09 21:53:34.000 | 2 2 | 2020-12-23 07:17:57 |
| 11965 | 2005-08-17 17:39:45.000 | 194 194 | 490 490 | 2005-08-19 12:05:45.000 | 1 1 | 2020-12-23 07:18:11 |
| 14557 | 2005-08-21 16:05:11.000 | 483 483 | 490 490 | 2005-08-27 16:37:11.000 | 1 1 | 2020-12-23 07:18:49 |
| 14761 | 2005-08-21 23:30:28.000 | 2657 2657 | 490 490 | 2005-08-26 03:26:28.000 | 1 1 | 2020-12-23 07:18:51 |
| 15276 | 2005-08-22 18:59:01.000 | 4523 4523 | 490 490 | 2005-08-23 19:49:01.000 | 2 2 | 2020-12-23 07:18:59 |
| 15448 | 2005-08-23 00:55:24.000 | 2903 2903 | 490 490 | 2005-08-25 02:20:24.000 | 1 1 | 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) ;