rental
28 rows where customer_id = 400
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 |
|---|---|---|---|---|---|---|
| 95 | 2005-05-25 16:12:52.000 | 178 178 | 400 400 | 2005-06-02 18:55:52.000 | 2 2 | 2020-12-23 07:15:21 |
| 171 | 2005-05-26 03:14:15.000 | 4483 4483 | 400 400 | 2005-06-03 00:24:15.000 | 2 2 | 2020-12-23 07:15:22 |
| 516 | 2005-05-28 03:11:47.000 | 4357 4357 | 400 400 | 2005-06-04 02:19:47.000 | 1 1 | 2020-12-23 07:15:26 |
| 894 | 2005-05-30 08:31:31.000 | 1118 1118 | 400 400 | 2005-06-07 12:39:31.000 | 1 1 | 2020-12-23 07:15:32 |
| 1364 | 2005-06-15 14:05:32.000 | 115 115 | 400 400 | 2005-06-16 15:31:32.000 | 1 1 | 2020-12-23 07:15:38 |
| 1917 | 2005-06-17 05:36:07.000 | 2667 2667 | 400 400 | 2005-06-24 01:44:07.000 | 1 1 | 2020-12-23 07:15:45 |
| 1923 | 2005-06-17 06:06:10.000 | 691 691 | 400 400 | 2005-06-24 04:29:10.000 | 2 2 | 2020-12-23 07:15:46 |
| 4573 | 2005-07-08 05:38:46.000 | 2478 2478 | 400 400 | 2005-07-15 07:07:46.000 | 1 1 | 2020-12-23 07:16:24 |
| 4645 | 2005-07-08 09:20:09.000 | 687 687 | 400 400 | 2005-07-09 06:07:09.000 | 2 2 | 2020-12-23 07:16:25 |
| 5212 | 2005-07-09 11:37:47.000 | 3240 3240 | 400 400 | 2005-07-15 14:42:47.000 | 1 1 | 2020-12-23 07:16:34 |
| 5222 | 2005-07-09 12:05:45.000 | 2508 2508 | 400 400 | 2005-07-13 12:11:45.000 | 1 1 | 2020-12-23 07:16:34 |
| 6790 | 2005-07-12 16:34:59.000 | 4486 4486 | 400 400 | 2005-07-17 21:43:59.000 | 2 2 | 2020-12-23 07:16:56 |
| 6994 | 2005-07-27 01:08:26.000 | 4316 4316 | 400 400 | 2005-08-04 22:58:26.000 | 2 2 | 2020-12-23 07:17:00 |
| 7296 | 2005-07-27 12:39:48.000 | 1681 1681 | 400 400 | 2005-08-04 18:24:48.000 | 2 2 | 2020-12-23 07:17:04 |
| 7682 | 2005-07-28 03:07:29.000 | 3296 3296 | 400 400 | 2005-08-04 08:48:29.000 | 2 2 | 2020-12-23 07:17:10 |
| 9177 | 2005-07-30 11:52:40.000 | 1088 1088 | 400 400 | 2005-08-08 09:35:40.000 | 1 1 | 2020-12-23 07:17:32 |
| 9756 | 2005-07-31 09:25:00.000 | 207 207 | 400 400 | 2005-08-02 05:11:00.000 | 1 1 | 2020-12-23 07:17:40 |
| 10187 | 2005-08-01 00:15:49.000 | 1629 1629 | 400 400 | 2005-08-05 01:00:49.000 | 2 2 | 2020-12-23 07:17:46 |
| 10484 | 2005-08-01 10:19:53.000 | 1908 1908 | 400 400 | 2005-08-03 05:36:53.000 | 1 1 | 2020-12-23 07:17:50 |
| 10711 | 2005-08-01 18:45:09.000 | 4278 4278 | 400 400 | 2005-08-02 19:47:09.000 | 2 2 | 2020-12-23 07:17:54 |
| 11510 | 2005-08-16 23:30:07.000 | 2997 2997 | 400 400 | 2005-08-25 17:35:07.000 | 1 1 | 2020-12-23 07:18:05 |
| 11530 | 2005-08-17 00:29:00.000 | 365 365 | 400 400 | 2005-08-22 03:22:00.000 | 1 1 | 2020-12-23 07:18:05 |
| 11600 | 2005-08-17 03:12:04.000 | 1978 1978 | 400 400 | 2005-08-23 07:10:04.000 | 1 1 | 2020-12-23 07:18:06 |
| 12514 | 2005-08-18 13:33:55.000 | 3310 3310 | 400 400 | 2005-08-23 12:50:55.000 | 2 2 | 2020-12-23 07:18:18 |
| 13449 | 2005-08-20 00:17:01.000 | 1297 1297 | 400 400 | 2005-08-23 20:42:01.000 | 2 2 | 2020-12-23 07:18:32 |
| 14775 | 2005-08-21 23:53:07.000 | 4044 4044 | 400 400 | 2005-08-22 18:07:07.000 | 2 2 | 2020-12-23 07:18:51 |
| 15533 | 2005-08-23 03:54:39.000 | 1895 1895 | 400 400 | 2005-08-26 08:27:39.000 | 2 2 | 2020-12-23 07:19:02 |
| 15988 | 2005-08-23 20:23:08.000 | 3932 3932 | 400 400 | 2005-08-28 20:50:08.000 | 1 1 | 2020-12-23 07:19:09 |
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) ;