rental
5 rows where inventory_id = 4045
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 |
|---|---|---|---|---|---|---|
| 986 | 2005-05-30 22:22:52.000 | 4045 4045 | 253 253 | 2005-06-01 02:24:52.000 | 1 1 | 2020-12-23 07:15:33 |
| 2442 | 2005-06-18 18:49:18.000 | 4045 4045 | 364 364 | 2005-06-22 16:18:18.000 | 1 1 | 2020-12-23 07:15:53 |
| 4142 | 2005-07-07 08:19:45.000 | 4045 4045 | 492 492 | 2005-07-08 13:55:45.000 | 1 1 | 2020-12-23 07:16:18 |
| 8579 | 2005-07-29 11:59:22.000 | 4045 4045 | 250 250 | 2005-07-30 11:41:22.000 | 2 2 | 2020-12-23 07:17:23 |
| 13373 | 2005-08-19 21:23:31.000 | 4045 4045 | 7 7 | 2005-08-25 22:38:31.000 | 1 1 | 2020-12-23 07:18:31 |
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) ;