rental
5 rows where inventory_id = 3131
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 |
|---|---|---|---|---|---|---|
| 502 | 2005-05-28 01:34:43.000 | 3131 3131 | 179 179 | 2005-05-31 01:02:43.000 | 2 2 | 2020-12-23 07:15:26 |
| 2737 | 2005-06-19 15:48:33.000 | 3131 3131 | 513 513 | 2005-06-26 18:44:33.000 | 2 2 | 2020-12-23 07:15:57 |
| 4658 | 2005-07-08 09:51:11.000 | 3131 3131 | 166 166 | 2005-07-10 12:30:11.000 | 2 2 | 2020-12-23 07:16:25 |
| 10225 | 2005-08-01 01:38:40.000 | 3131 3131 | 498 498 | 2005-08-06 20:00:40.000 | 1 1 | 2020-12-23 07:17:47 |
| 12362 | 2005-08-18 07:48:05.000 | 3131 3131 | 367 367 | 2005-08-20 05:16:05.000 | 2 2 | 2020-12-23 07:18:16 |
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) ;