rental
5 rows where inventory_id = 1619
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 |
|---|---|---|---|---|---|---|
| 1104 | 2005-05-31 14:30:01.000 | 1619 1619 | 466 466 | 2005-06-05 12:07:01.000 | 1 1 | 2020-12-23 07:15:34 |
| 2157 | 2005-06-17 23:30:52.000 | 1619 1619 | 201 201 | 2005-06-24 01:56:52.000 | 2 2 | 2020-12-23 07:15:49 |
| 4730 | 2005-07-08 12:59:49.000 | 1619 1619 | 126 126 | 2005-07-14 16:15:49.000 | 2 2 | 2020-12-23 07:16:27 |
| 9987 | 2005-07-31 17:22:35.000 | 1619 1619 | 15 15 | 2005-08-01 21:19:35.000 | 2 2 | 2020-12-23 07:17:44 |
| 14818 | 2005-08-22 01:17:18.000 | 1619 1619 | 580 580 | 2005-08-26 05:40:18.000 | 1 1 | 2020-12-23 07:18:52 |
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) ;