rental
15 rows where customer_id = 248
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 |
|---|---|---|---|---|---|---|
| 330 | 2005-05-27 02:15:30.000 | 1536 1536 | 248 248 | 2005-06-04 05:09:30.000 | 2 2 | 2020-12-23 07:15:24 |
| 618 | 2005-05-28 15:50:07.000 | 4445 4445 | 248 248 | 2005-06-01 19:45:07.000 | 1 1 | 2020-12-23 07:15:28 |
| 2066 | 2005-06-17 16:07:08.000 | 2561 2561 | 248 248 | 2005-06-24 15:20:08.000 | 2 2 | 2020-12-23 07:15:48 |
| 2371 | 2005-06-18 14:35:29.000 | 178 178 | 248 248 | 2005-06-22 09:38:29.000 | 2 2 | 2020-12-23 07:15:52 |
| 3910 | 2005-07-06 20:05:18.000 | 2085 2085 | 248 248 | 2005-07-10 18:51:18.000 | 1 1 | 2020-12-23 07:16:14 |
| 4541 | 2005-07-08 04:04:19.000 | 1976 1976 | 248 248 | 2005-07-13 07:27:19.000 | 2 2 | 2020-12-23 07:16:24 |
| 4841 | 2005-07-08 18:18:23.000 | 518 518 | 248 248 | 2005-07-11 16:51:23.000 | 2 2 | 2020-12-23 07:16:28 |
| 5370 | 2005-07-09 18:43:19.000 | 2193 2193 | 248 248 | 2005-07-15 19:59:19.000 | 1 1 | 2020-12-23 07:16:36 |
| 6617 | 2005-07-12 08:39:56.000 | 2292 2292 | 248 248 | 2005-07-14 09:32:56.000 | 2 2 | 2020-12-23 07:16:54 |
| 7778 | 2005-07-28 07:10:11.000 | 1044 1044 | 248 248 | 2005-08-05 05:09:11.000 | 1 1 | 2020-12-23 07:17:11 |
| 10418 | 2005-08-01 08:11:07.000 | 1692 1692 | 248 248 | 2005-08-04 11:12:07.000 | 2 2 | 2020-12-23 07:17:49 |
| 12241 | 2005-08-18 03:33:17.000 | 1261 1261 | 248 248 | 2005-08-21 03:13:17.000 | 2 2 | 2020-12-23 07:18:15 |
| 13918 | 2005-08-20 16:47:32.000 | 3301 3301 | 248 248 | 2005-08-21 12:00:32.000 | 2 2 | 2020-12-23 07:18:39 |
| 14704 | 2005-08-21 21:02:22.000 | 4062 4062 | 248 248 | 2005-08-27 23:10:22.000 | 2 2 | 2020-12-23 07:18:50 |
| 14885 | 2005-08-22 03:58:29.000 | 2097 2097 | 248 248 | 2005-08-30 05:26:29.000 | 1 1 | 2020-12-23 07:18:53 |
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) ;