rental
5 rows where inventory_id = 4021
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 |
|---|---|---|---|---|---|---|
| 879 | 2005-05-30 05:49:42.000 | 4021 4021 | 482 482 | 2005-06-05 01:45:42.000 | 2 2 | 2020-12-23 07:15:31 |
| 1167 | 2005-06-14 23:25:58.000 | 4021 4021 | 323 323 | 2005-06-18 05:18:58.000 | 2 2 | 2020-12-23 07:15:35 |
| 4161 | 2005-07-07 09:15:11.000 | 4021 4021 | 216 216 | 2005-07-15 06:59:11.000 | 1 1 | 2020-12-23 07:16:18 |
| 9256 | 2005-07-30 14:29:29.000 | 4021 4021 | 19 19 | 2005-08-05 16:59:29.000 | 1 1 | 2020-12-23 07:17:33 |
| 11873 | 2005-08-17 14:14:39.000 | 4021 4021 | 554 554 | 2005-08-18 17:20:39.000 | 2 2 | 2020-12-23 07:18:10 |
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) ;