rental
18 rows where customer_id = 255
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 |
|---|---|---|---|---|---|---|
| 1235 | 2005-06-15 04:31:28.000 | 1000 1000 | 255 255 | 2005-06-22 10:08:28.000 | 1 1 | 2020-12-23 07:15:36 |
| 1420 | 2005-06-15 17:56:14.000 | 4149 4149 | 255 255 | 2005-06-24 15:45:14.000 | 2 2 | 2020-12-23 07:15:39 |
| 1681 | 2005-06-16 11:38:17.000 | 530 530 | 255 255 | 2005-06-19 13:05:17.000 | 1 1 | 2020-12-23 07:15:42 |
| 3442 | 2005-06-21 20:06:51.000 | 1896 1896 | 255 255 | 2005-06-25 17:35:51.000 | 2 2 | 2020-12-23 07:16:07 |
| 4547 | 2005-07-08 04:20:19.000 | 3386 3386 | 255 255 | 2005-07-09 00:28:19.000 | 2 2 | 2020-12-23 07:16:24 |
| 5706 | 2005-07-10 10:21:46.000 | 3701 3701 | 255 255 | 2005-07-16 04:37:46.000 | 2 2 | 2020-12-23 07:16:41 |
| 5943 | 2005-07-10 22:48:13.000 | 3019 3019 | 255 255 | 2005-07-16 01:33:13.000 | 1 1 | 2020-12-23 07:16:44 |
| 7475 | 2005-07-27 19:07:43.000 | 1670 1670 | 255 255 | 2005-08-04 22:12:43.000 | 2 2 | 2020-12-23 07:17:07 |
| 7646 | 2005-07-28 01:31:45.000 | 1615 1615 | 255 255 | 2005-07-31 07:16:45.000 | 1 1 | 2020-12-23 07:17:09 |
| 8562 | 2005-07-29 11:32:13.000 | 3595 3595 | 255 255 | 2005-07-30 08:23:13.000 | 2 2 | 2020-12-23 07:17:23 |
| 9061 | 2005-07-30 07:21:52.000 | 1933 1933 | 255 255 | 2005-08-08 10:52:52.000 | 1 1 | 2020-12-23 07:17:30 |
| 11979 | 2005-08-17 18:07:13.000 | 568 568 | 255 255 | 2005-08-19 23:12:13.000 | 1 1 | 2020-12-23 07:18:11 |
| 12176 | 2005-08-18 01:10:33.000 | 3873 3873 | 255 255 | 2005-08-24 02:45:33.000 | 2 2 | 2020-12-23 07:18:14 |
| 13154 | 2005-08-19 13:09:54.000 | 2465 2465 | 255 255 | 2005-08-26 16:40:54.000 | 1 1 | 2020-12-23 07:18:28 |
| 13268 | 2005-08-19 17:33:50.000 | 1166 1166 | 255 255 | 2005-08-25 17:15:50.000 | 2 2 | 2020-12-23 07:18:29 |
| 13683 | 2005-08-20 08:54:55.000 | 1729 1729 | 255 255 | 2005-08-24 14:10:55.000 | 2 2 | 2020-12-23 07:18:36 |
| 13758 | 2005-08-20 11:21:26.000 | 864 864 | 255 255 | 2005-08-29 14:37:26.000 | 2 2 | 2020-12-23 07:18:37 |
| 14600 | 2005-08-21 17:45:21.000 | 3532 3532 | 255 255 | 2005-08-28 19:03:21.000 | 1 1 | 2020-12-23 07:18:49 |
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) ;