rental
18 rows where customer_id = 140
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 |
|---|---|---|---|---|---|---|
| 1586 | 2005-06-16 04:51:18.000 | 769 769 | 140 140 | 2005-06-21 06:54:18.000 | 2 2 | 2020-12-23 07:15:41 |
| 1687 | 2005-06-16 12:09:20.000 | 3686 3686 | 140 140 | 2005-06-18 06:18:20.000 | 2 2 | 2020-12-23 07:15:42 |
| 2332 | 2005-06-18 10:53:51.000 | 2152 2152 | 140 140 | 2005-06-24 12:06:51.000 | 2 2 | 2020-12-23 07:15:52 |
| 3171 | 2005-06-20 22:15:47.000 | 2838 2838 | 140 140 | 2005-06-24 18:14:47.000 | 1 1 | 2020-12-23 07:16:03 |
| 6286 | 2005-07-11 16:55:35.000 | 1070 1070 | 140 140 | 2005-07-13 22:51:35.000 | 1 1 | 2020-12-23 07:16:49 |
| 6407 | 2005-07-11 23:02:19.000 | 775 775 | 140 140 | 2005-07-21 00:30:19.000 | 1 1 | 2020-12-23 07:16:51 |
| 6571 | 2005-07-12 05:51:47.000 | 3700 3700 | 140 140 | 2005-07-15 11:31:47.000 | 1 1 | 2020-12-23 07:16:53 |
| 6918 | 2005-07-12 22:30:29.000 | 4085 4085 | 140 140 | 2005-07-19 22:51:29.000 | 1 1 | 2020-12-23 07:16:58 |
| 7170 | 2005-07-27 07:58:26.000 | 370 370 | 140 140 | 2005-07-28 02:30:26.000 | 1 1 | 2020-12-23 07:17:02 |
| 9094 | 2005-07-30 08:35:10.000 | 2699 2699 | 140 140 | 2005-08-07 08:18:10.000 | 2 2 | 2020-12-23 07:17:30 |
| 9404 | 2005-07-30 20:21:35.000 | 3832 3832 | 140 140 | 2005-08-02 15:52:35.000 | 1 1 | 2020-12-23 07:17:35 |
| 10342 | 2005-08-01 05:11:11.000 | 332 332 | 140 140 | 2005-08-10 00:27:11.000 | 1 1 | 2020-12-23 07:17:48 |
| 11430 | 2005-08-02 20:04:36.000 | 2258 2258 | 140 140 | 2005-08-08 19:43:36.000 | 1 1 | 2020-12-23 07:18:04 |
| 12086 | 2005-08-17 22:20:01.000 | 3963 3963 | 140 140 | 2005-08-26 02:14:01.000 | 1 1 | 2020-12-23 07:18:12 |
| 12675 | 2005-08-18 19:34:02.000 | 569 569 | 140 140 | 2005-08-23 13:36:02.000 | 2 2 | 2020-12-23 07:18:20 |
| 13053 | 2005-08-19 09:31:48.000 | 2044 2044 | 140 140 | 2005-08-28 07:51:48.000 | 2 2 | 2020-12-23 07:18:26 |
| 15261 | 2005-08-22 18:24:34.000 | 2200 2200 | 140 140 | 2005-08-27 19:53:34.000 | 1 1 | 2020-12-23 07:18:59 |
| 15852 | 2005-08-23 15:47:02.000 | 1506 1506 | 140 140 | 2005-08-25 19:37:02.000 | 1 1 | 2020-12-23 07:19:07 |
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) ;