rental
17 rows where customer_id = 48
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 |
|---|---|---|---|---|---|---|
| 72 | 2005-05-25 10:52:13.000 | 2260 2260 | 48 48 | 2005-05-28 05:52:13.000 | 2 2 | 2020-12-23 07:15:21 |
| 297 | 2005-05-26 20:48:48.000 | 1594 1594 | 48 48 | 2005-05-27 19:52:48.000 | 2 2 | 2020-12-23 07:15:24 |
| 390 | 2005-05-27 11:02:26.000 | 3759 3759 | 48 48 | 2005-06-02 16:09:26.000 | 2 2 | 2020-12-23 07:15:25 |
| 1689 | 2005-06-16 12:18:41.000 | 4036 4036 | 48 48 | 2005-06-24 13:33:41.000 | 2 2 | 2020-12-23 07:15:42 |
| 2822 | 2005-06-19 20:29:24.000 | 3599 3599 | 48 48 | 2005-06-23 02:21:24.000 | 1 1 | 2020-12-23 07:15:58 |
| 3758 | 2005-07-06 12:43:11.000 | 2498 2498 | 48 48 | 2005-07-14 12:52:11.000 | 2 2 | 2020-12-23 07:16:12 |
| 4367 | 2005-07-07 19:52:01.000 | 4529 4529 | 48 48 | 2005-07-13 19:41:01.000 | 2 2 | 2020-12-23 07:16:21 |
| 5148 | 2005-07-09 08:22:46.000 | 456 456 | 48 48 | 2005-07-18 04:36:46.000 | 1 1 | 2020-12-23 07:16:33 |
| 6498 | 2005-07-12 03:05:38.000 | 243 243 | 48 48 | 2005-07-19 07:12:38.000 | 1 1 | 2020-12-23 07:16:52 |
| 7920 | 2005-07-28 12:01:19.000 | 66 66 | 48 48 | 2005-08-05 07:08:19.000 | 1 1 | 2020-12-23 07:17:13 |
| 8716 | 2005-07-29 17:39:09.000 | 2123 2123 | 48 48 | 2005-08-03 20:26:09.000 | 2 2 | 2020-12-23 07:17:25 |
| 9402 | 2005-07-30 20:18:27.000 | 2424 2424 | 48 48 | 2005-08-07 21:29:27.000 | 2 2 | 2020-12-23 07:17:35 |
| 9742 | 2005-07-31 09:10:20.000 | 4058 4058 | 48 48 | 2005-08-08 10:07:20.000 | 1 1 | 2020-12-23 07:17:40 |
| 10276 | 2005-08-01 03:22:23.000 | 2201 2201 | 48 48 | 2005-08-03 07:59:23.000 | 1 1 | 2020-12-23 07:17:47 |
| 14450 | 2005-08-21 12:21:25.000 | 1194 1194 | 48 48 | 2005-08-26 14:35:25.000 | 2 2 | 2020-12-23 07:18:47 |
| 14536 | 2005-08-21 15:22:50.000 | 2615 2615 | 48 48 | 2005-08-27 17:03:50.000 | 1 1 | 2020-12-23 07:18:48 |
| 15228 | 2005-08-22 17:27:23.000 | 2485 2485 | 48 48 | 2005-08-29 11:38:23.000 | 2 2 | 2020-12-23 07:18:58 |
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) ;