rental
30 rows where customer_id = 154
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 |
|---|---|---|---|---|---|---|
| 469 | 2005-05-27 21:14:26.000 | 4463 4463 | 154 154 | 2005-06-05 21:51:26.000 | 1 1 | 2020-12-23 07:15:26 |
| 865 | 2005-05-30 03:39:44.000 | 3183 3183 | 154 154 | 2005-06-07 08:10:44.000 | 2 2 | 2020-12-23 07:15:31 |
| 978 | 2005-05-30 21:30:52.000 | 407 407 | 154 154 | 2005-06-07 16:22:52.000 | 1 1 | 2020-12-23 07:15:33 |
| 1963 | 2005-06-17 09:09:31.000 | 1943 1943 | 154 154 | 2005-06-24 13:16:31.000 | 2 2 | 2020-12-23 07:15:46 |
| 2886 | 2005-06-20 01:38:39.000 | 1755 1755 | 154 154 | 2005-06-23 04:28:39.000 | 2 2 | 2020-12-23 07:15:59 |
| 2985 | 2005-06-20 08:45:08.000 | 122 122 | 154 154 | 2005-06-22 04:26:08.000 | 2 2 | 2020-12-23 07:16:01 |
| 3806 | 2005-07-06 15:09:41.000 | 3555 3555 | 154 154 | 2005-07-14 09:14:41.000 | 2 2 | 2020-12-23 07:16:13 |
| 3912 | 2005-07-06 20:10:03.000 | 2449 2449 | 154 154 | 2005-07-08 18:39:03.000 | 2 2 | 2020-12-23 07:16:14 |
| 4132 | 2005-07-07 08:06:07.000 | 993 993 | 154 154 | 2005-07-10 14:04:07.000 | 1 1 | 2020-12-23 07:16:18 |
| 4252 | 2005-07-07 14:13:05.000 | 474 474 | 154 154 | 2005-07-09 14:17:05.000 | 1 1 | 2020-12-23 07:16:19 |
| 4850 | 2005-07-08 18:39:31.000 | 3039 3039 | 154 154 | 2005-07-13 00:18:31.000 | 2 2 | 2020-12-23 07:16:28 |
| 5101 | 2005-07-09 06:21:29.000 | 2737 2737 | 154 154 | 2005-07-11 02:58:29.000 | 1 1 | 2020-12-23 07:16:32 |
| 5760 | 2005-07-10 12:44:48.000 | 1050 1050 | 154 154 | 2005-07-14 12:25:48.000 | 1 1 | 2020-12-23 07:16:42 |
| 6048 | 2005-07-11 03:32:23.000 | 975 975 | 154 154 | 2005-07-14 07:39:23.000 | 1 1 | 2020-12-23 07:16:46 |
| 6993 | 2005-07-27 01:05:24.000 | 3114 3114 | 154 154 | 2005-07-30 06:23:24.000 | 2 2 | 2020-12-23 07:17:00 |
| 7055 | 2005-07-27 03:45:42.000 | 4305 4305 | 154 154 | 2005-07-30 05:11:42.000 | 1 1 | 2020-12-23 07:17:00 |
| 7156 | 2005-07-27 07:19:34.000 | 34 34 | 154 154 | 2005-07-31 04:31:34.000 | 1 1 | 2020-12-23 07:17:02 |
| 7900 | 2005-07-28 11:11:33.000 | 2781 2781 | 154 154 | 2005-08-05 06:29:33.000 | 2 2 | 2020-12-23 07:17:13 |
| 8334 | 2005-07-29 04:18:25.000 | 982 982 | 154 154 | 2005-08-07 07:18:25.000 | 2 2 | 2020-12-23 07:17:19 |
| 9286 | 2005-07-30 15:32:28.000 | 2477 2477 | 154 154 | 2005-07-31 20:42:28.000 | 2 2 | 2020-12-23 07:17:33 |
| 10278 | 2005-08-01 03:25:27.000 | 2497 2497 | 154 154 | 2005-08-08 07:52:27.000 | 1 1 | 2020-12-23 07:17:47 |
| 10851 | 2005-08-01 23:58:45.000 | 1359 1359 | 154 154 | 2005-08-04 00:59:45.000 | 1 1 | 2020-12-23 07:17:56 |
| 11296 | 2005-08-02 15:15:27.000 | 247 247 | 154 154 | 2005-08-11 16:12:27.000 | 1 1 | 2020-12-23 07:18:02 |
| 12341 | 2005-08-18 07:09:27.000 | 130 130 | 154 154 | 2005-08-21 03:44:27.000 | 1 1 | 2020-12-23 07:18:16 |
| 13861 | 2005-08-20 14:56:53.000 | 303 303 | 154 154 | 2005-08-22 18:13:53.000 | 2 2 | 2020-12-23 07:18:38 |
| 14731 | 2005-08-21 22:21:49.000 | 1351 1351 | 154 154 | 2005-08-24 16:27:49.000 | 1 1 | 2020-12-23 07:18:51 |
| 14793 | 2005-08-22 00:37:57.000 | 4285 4285 | 154 154 | 2005-08-29 05:44:57.000 | 2 2 | 2020-12-23 07:18:52 |
| 14918 | 2005-08-22 05:06:38.000 | 4056 4056 | 154 154 | 2005-08-30 01:44:38.000 | 2 2 | 2020-12-23 07:18:53 |
| 15351 | 2005-08-22 21:15:46.000 | 3260 3260 | 154 154 | 2005-08-23 17:38:46.000 | 1 1 | 2020-12-23 07:19:00 |
| 15721 | 2005-08-23 11:16:16.000 | 685 685 | 154 154 | 2005-08-28 10:21:16.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) ;