rental
5 rows where inventory_id = 4238
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 |
|---|---|---|---|---|---|---|
| 460 | 2005-05-27 20:02:03.000 | 4238 4238 | 240 240 | 2005-05-28 16:14:03.000 | 1 1 | 2020-12-23 07:15:26 |
| 1366 | 2005-06-15 14:21:00.000 | 4238 4238 | 576 576 | 2005-06-24 17:36:00.000 | 1 1 | 2020-12-23 07:15:38 |
| 5551 | 2005-07-10 03:01:09.000 | 4238 4238 | 44 44 | 2005-07-18 02:04:09.000 | 2 2 | 2020-12-23 07:16:39 |
| 10432 | 2005-08-01 08:43:21.000 | 4238 4238 | 450 450 | 2005-08-08 13:09:21.000 | 2 2 | 2020-12-23 07:17:50 |
| 15562 | 2005-08-23 05:04:33.000 | 4238 4238 | 149 149 | 2005-08-27 09:58:33.000 | 1 1 | 2020-12-23 07:19:03 |
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) ;