rental
5 rows where inventory_id = 3225
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 |
|---|---|---|---|---|---|---|
| 601 | 2005-05-28 14:08:22.000 | 3225 3225 | 429 429 | 2005-06-04 10:50:22.000 | 1 1 | 2020-12-23 07:15:27 |
| 1967 | 2005-06-17 09:19:52.000 | 3225 3225 | 558 558 | 2005-06-21 03:35:52.000 | 1 1 | 2020-12-23 07:15:46 |
| 6134 | 2005-07-11 08:28:19.000 | 3225 3225 | 305 305 | 2005-07-18 09:20:19.000 | 2 2 | 2020-12-23 07:16:47 |
| 8595 | 2005-07-29 12:47:43.000 | 3225 3225 | 423 423 | 2005-08-07 13:51:43.000 | 2 2 | 2020-12-23 07:17:23 |
| 11851 | 2005-08-17 13:30:27.000 | 3225 3225 | 376 376 | 2005-08-20 15:34:27.000 | 2 2 | 2020-12-23 07:18:09 |
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) ;