rental
34 rows where customer_id = 138
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 |
|---|---|---|---|---|---|---|
| 523 | 2005-05-28 03:53:26.000 | 1905 1905 | 138 138 | 2005-05-31 05:58:26.000 | 2 2 | 2020-12-23 07:15:26 |
| 1020 | 2005-05-31 03:06:08.000 | 3402 3402 | 138 138 | 2005-06-02 08:57:08.000 | 2 2 | 2020-12-23 07:15:33 |
| 1316 | 2005-06-15 10:26:23.000 | 3891 3891 | 138 138 | 2005-06-21 09:25:23.000 | 2 2 | 2020-12-23 07:15:37 |
| 2038 | 2005-06-17 14:00:51.000 | 4231 4231 | 138 138 | 2005-06-19 11:54:51.000 | 2 2 | 2020-12-23 07:15:47 |
| 2731 | 2005-06-19 15:14:55.000 | 4218 4218 | 138 138 | 2005-06-27 14:30:55.000 | 2 2 | 2020-12-23 07:15:57 |
| 3481 | 2005-07-05 23:13:07.000 | 3575 3575 | 138 138 | 2005-07-07 20:36:07.000 | 2 2 | 2020-12-23 07:16:08 |
| 5378 | 2005-07-09 19:05:56.000 | 1570 1570 | 138 138 | 2005-07-10 18:03:56.000 | 2 2 | 2020-12-23 07:16:36 |
| 5600 | 2005-07-10 04:55:45.000 | 3713 3713 | 138 138 | 2005-07-18 03:10:45.000 | 2 2 | 2020-12-23 07:16:39 |
| 5679 | 2005-07-10 08:44:02.000 | 389 389 | 138 138 | 2005-07-14 05:30:02.000 | 1 1 | 2020-12-23 07:16:40 |
| 6458 | 2005-07-12 01:08:52.000 | 2809 2809 | 138 138 | 2005-07-16 20:22:52.000 | 1 1 | 2020-12-23 07:16:51 |
| 6892 | 2005-07-12 21:10:04.000 | 1567 1567 | 138 138 | 2005-07-13 23:03:04.000 | 2 2 | 2020-12-23 07:16:58 |
| 7208 | 2005-07-27 09:16:28.000 | 1523 1523 | 138 138 | 2005-07-28 09:40:28.000 | 1 1 | 2020-12-23 07:17:03 |
| 7754 | 2005-07-28 06:10:55.000 | 1981 1981 | 138 138 | 2005-07-29 02:46:55.000 | 1 1 | 2020-12-23 07:17:11 |
| 8123 | 2005-07-28 19:28:23.000 | 2256 2256 | 138 138 | 2005-08-04 19:41:23.000 | 1 1 | 2020-12-23 07:17:16 |
| 8160 | 2005-07-28 21:10:30.000 | 2446 2446 | 138 138 | 2005-08-05 16:52:30.000 | 2 2 | 2020-12-23 07:17:17 |
| 8424 | 2005-07-29 07:06:03.000 | 366 366 | 138 138 | 2005-08-06 12:00:03.000 | 2 2 | 2020-12-23 07:17:21 |
| 9259 | 2005-07-30 14:37:44.000 | 97 97 | 138 138 | 2005-08-06 18:05:44.000 | 2 2 | 2020-12-23 07:17:33 |
| 9619 | 2005-07-31 04:17:02.000 | 1730 1730 | 138 138 | 2005-08-05 06:36:02.000 | 2 2 | 2020-12-23 07:17:38 |
| 9947 | 2005-07-31 15:49:40.000 | 1173 1173 | 138 138 | 2005-08-08 11:11:40.000 | 1 1 | 2020-12-23 07:17:43 |
| 10110 | 2005-07-31 21:06:12.000 | 4081 4081 | 138 138 | 2005-08-03 02:03:12.000 | 2 2 | 2020-12-23 07:17:45 |
| 10190 | 2005-08-01 00:27:53.000 | 4411 4411 | 138 138 | 2005-08-01 20:32:53.000 | 2 2 | 2020-12-23 07:17:46 |
| 10268 | 2005-08-01 03:08:56.000 | 2755 2755 | 138 138 | 2005-08-08 02:41:56.000 | 1 1 | 2020-12-23 07:17:47 |
| 10431 | 2005-08-01 08:41:54.000 | 1074 1074 | 138 138 | 2005-08-07 09:44:54.000 | 2 2 | 2020-12-23 07:17:50 |
| 11015 | 2005-08-02 05:13:00.000 | 4331 4331 | 138 138 | 2005-08-08 04:18:00.000 | 2 2 | 2020-12-23 07:17:58 |
| 11088 | 2005-08-02 07:48:31.000 | 2739 2739 | 138 138 | 2005-08-05 08:09:31.000 | 2 2 | 2020-12-23 07:17:59 |
| 11463 | 2005-08-02 21:37:36.000 | 1944 1944 | 138 138 | 2005-08-08 03:11:36.000 | 2 2 | 2020-12-23 07:18:04 |
| 12550 | 2005-08-18 14:40:38.000 | 4267 4267 | 138 138 | 2005-08-19 13:33:38.000 | 2 2 | 2020-12-23 07:18:19 |
| 12873 | 2005-08-19 03:05:41.000 | 2140 2140 | 138 138 | 2005-08-22 06:57:41.000 | 2 2 | 2020-12-23 07:18:23 |
| 14194 | 2005-08-21 03:40:11.000 | 2003 2003 | 138 138 | 2005-08-26 07:38:11.000 | 1 1 | 2020-12-23 07:18:44 |
| 14432 | 2005-08-21 11:36:15.000 | 2294 2294 | 138 138 | 2005-08-24 08:02:15.000 | 2 2 | 2020-12-23 07:18:47 |
| 14486 | 2005-08-21 13:52:54.000 | 3119 3119 | 138 138 | 2005-08-23 07:58:54.000 | 1 1 | 2020-12-23 07:18:48 |
| 14987 | 2005-08-22 07:41:08.000 | 1513 1513 | 138 138 | 2005-08-24 03:15:08.000 | 2 2 | 2020-12-23 07:18:54 |
| 15424 | 2005-08-23 00:03:01.000 | 3452 3452 | 138 138 | 2005-08-27 23:27:01.000 | 2 2 | 2020-12-23 07:19:01 |
| 15501 | 2005-08-23 02:39:56.000 | 4468 4468 | 138 138 | 2005-08-25 04:39:56.000 | 1 1 | 2020-12-23 07:19:02 |
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) ;