rental
5 rows where inventory_id = 2815
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 |
|---|---|---|---|---|---|---|
| 424 | 2005-05-27 15:34:01.000 | 2815 2815 | 35 35 | 2005-06-05 09:44:01.000 | 1 1 | 2020-12-23 07:15:25 |
| 2362 | 2005-06-18 13:31:15.000 | 2815 2815 | 514 514 | 2005-06-19 12:35:15.000 | 1 1 | 2020-12-23 07:15:52 |
| 6041 | 2005-07-11 03:14:58.000 | 2815 2815 | 551 551 | 2005-07-13 00:48:58.000 | 2 2 | 2020-12-23 07:16:46 |
| 8572 | 2005-07-29 11:51:24.000 | 2815 2815 | 267 267 | 2005-08-02 11:44:24.000 | 1 1 | 2020-12-23 07:17:23 |
| 11802 | 2005-08-17 11:32:51.000 | 2815 2815 | 221 221 | 2005-08-22 10:56:51.000 | 1 1 | 2020-12-23 07:18:09 |
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) ;