rental
5 rows where inventory_id = 350
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 |
|---|---|---|---|---|---|---|
| 284 | 2005-05-26 19:21:44.000 | 350 350 | 359 359 | 2005-06-04 14:18:44.000 | 2 2 | 2020-12-23 07:15:23 |
| 2738 | 2005-06-19 15:56:30.000 | 350 350 | 75 75 | 2005-06-20 16:14:30.000 | 2 2 | 2020-12-23 07:15:57 |
| 5904 | 2005-07-10 20:39:44.000 | 350 350 | 531 531 | 2005-07-13 17:57:44.000 | 2 2 | 2020-12-23 07:16:44 |
| 9983 | 2005-07-31 17:09:36.000 | 350 350 | 129 129 | 2005-08-08 20:26:36.000 | 1 1 | 2020-12-23 07:17:44 |
| 13675 | 2005-08-20 08:32:51.000 | 350 350 | 493 493 | 2005-08-27 03:52:51.000 | 2 2 | 2020-12-23 07:18:35 |
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) ;