rental
5 rows where inventory_id = 515
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 |
|---|---|---|---|---|---|---|
| 765 | 2005-05-29 11:38:34.000 | 515 515 | 69 69 | 2005-06-02 17:04:34.000 | 1 1 | 2020-12-23 07:15:30 |
| 1387 | 2005-06-15 15:40:56.000 | 515 515 | 278 278 | 2005-06-17 10:39:56.000 | 1 1 | 2020-12-23 07:15:38 |
| 6635 | 2005-07-12 09:47:58.000 | 515 515 | 273 273 | 2005-07-16 15:43:58.000 | 1 1 | 2020-12-23 07:16:54 |
| 7411 | 2005-07-27 16:42:30.000 | 515 515 | 302 302 | 2005-08-05 17:38:30.000 | 1 1 | 2020-12-23 07:17:06 |
| 13786 | 2005-08-20 12:13:24.000 | 515 515 | 94 94 | 2005-08-28 07:24:24.000 | 2 2 | 2020-12-23 07:18:37 |
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) ;