rental
21 rows where customer_id = 552
This data as json, xlsx, CSV (advanced)
Suggested facets: staff_id, last_update, rental_date (date), return_date (date), last_update (date)
| rental_id ▼ | rental_date | inventory_id | customer_id | return_date | staff_id | last_update |
|---|---|---|---|---|---|---|
| 174 | 2005-05-26 03:44:10.000 | 3954 3954 | 552 552 | 2005-05-28 07:13:10.000 | 2 2 | 2020-12-23 07:15:22 |
| 2320 | 2005-06-18 09:24:50.000 | 597 597 | 552 552 | 2005-06-24 07:59:50.000 | 1 1 | 2020-12-23 07:15:52 |
| 3397 | 2005-06-21 15:30:11.000 | 602 602 | 552 552 | 2005-06-22 21:12:11.000 | 1 1 | 2020-12-23 07:16:06 |
| 4477 | 2005-07-08 00:38:24.000 | 1602 1602 | 552 552 | 2005-07-13 05:14:24.000 | 1 1 | 2020-12-23 07:16:23 |
| 5213 | 2005-07-09 11:39:43.000 | 3708 3708 | 552 552 | 2005-07-18 16:20:43.000 | 2 2 | 2020-12-23 07:16:34 |
| 6189 | 2005-07-11 11:36:03.000 | 3800 3800 | 552 552 | 2005-07-20 15:33:03.000 | 2 2 | 2020-12-23 07:16:48 |
| 7772 | 2005-07-28 06:59:09.000 | 986 986 | 552 552 | 2005-08-01 10:49:09.000 | 1 1 | 2020-12-23 07:17:11 |
| 8085 | 2005-07-28 18:13:15.000 | 3059 3059 | 552 552 | 2005-08-04 13:45:15.000 | 2 2 | 2020-12-23 07:17:16 |
| 8192 | 2005-07-28 22:49:11.000 | 255 255 | 552 552 | 2005-07-30 04:13:11.000 | 1 1 | 2020-12-23 07:17:17 |
| 8614 | 2005-07-29 13:32:05.000 | 604 604 | 552 552 | 2005-08-04 15:26:05.000 | 1 1 | 2020-12-23 07:17:24 |
| 8894 | 2005-07-30 00:48:31.000 | 2055 2055 | 552 552 | 2005-07-31 05:49:31.000 | 1 1 | 2020-12-23 07:17:28 |
| 9342 | 2005-07-30 18:09:56.000 | 2318 2318 | 552 552 | 2005-08-08 13:54:56.000 | 2 2 | 2020-12-23 07:17:34 |
| 11146 | 2005-08-02 09:45:32.000 | 2488 2488 | 552 552 | 2005-08-07 07:33:32.000 | 1 1 | 2020-12-23 07:18:00 |
| 11205 | 2005-08-02 11:56:54.000 | 4321 4321 | 552 552 | 2005-08-05 08:24:54.000 | 1 1 | 2020-12-23 07:18:00 |
| 11300 | 2005-08-02 15:37:42.000 | 3032 3032 | 552 552 | 2005-08-11 14:25:42.000 | 1 1 | 2020-12-23 07:18:02 |
| 12433 | 2005-08-18 10:37:49.000 | 1776 1776 | 552 552 | 2005-08-19 08:00:49.000 | 1 1 | 2020-12-23 07:18:17 |
| 12880 | 2005-08-19 03:27:17.000 | 3386 3386 | 552 552 | 2005-08-28 06:16:17.000 | 2 2 | 2020-12-23 07:18:23 |
| 13574 | 2005-08-20 05:10:39.000 | 2383 2383 | 552 552 | 2005-08-21 02:21:39.000 | 2 2 | 2020-12-23 07:18:34 |
| 13693 | 2005-08-20 09:11:42.000 | 933 933 | 552 552 | 2005-08-24 15:00:42.000 | 2 2 | 2020-12-23 07:18:36 |
| 14724 | 2005-08-21 21:53:47.000 | 3559 3559 | 552 552 | 2005-08-23 20:14:47.000 | 2 2 | 2020-12-23 07:18:51 |
| 15700 | 2005-08-23 10:21:21.000 | 2935 2935 | 552 552 | 2005-08-24 15:37:21.000 | 1 1 | 2020-12-23 07:19:05 |
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) ;