rental
5 rows where inventory_id = 3828
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 |
|---|---|---|---|---|---|---|
| 316 | 2005-05-26 23:22:55.000 | 3828 3828 | 249 249 | 2005-05-29 23:25:55.000 | 2 2 | 2020-12-23 07:15:24 |
| 3269 | 2005-06-21 05:06:30.000 | 3828 3828 | 17 17 | 2005-06-27 09:26:30.000 | 2 2 | 2020-12-23 07:16:04 |
| 5342 | 2005-07-09 17:20:03.000 | 3828 3828 | 289 289 | 2005-07-18 12:44:03.000 | 2 2 | 2020-12-23 07:16:35 |
| 7722 | 2005-07-28 04:44:58.000 | 3828 3828 | 309 309 | 2005-07-30 01:29:58.000 | 1 1 | 2020-12-23 07:17:11 |
| 15866 | 2005-08-23 16:19:02.000 | 3828 3828 | 296 296 | 2005-08-31 12:29:02.000 | 2 2 | 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) ;