rental
37 rows where customer_id = 366
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 |
|---|---|---|---|---|---|---|
| 911 | 2005-05-30 10:50:22.000 | 1404 1404 | 366 366 | 2005-06-07 12:26:22.000 | 2 2 | 2020-12-23 07:15:32 |
| 1401 | 2005-06-15 16:30:22.000 | 4081 4081 | 366 366 | 2005-06-21 11:07:22.000 | 2 2 | 2020-12-23 07:15:38 |
| 2214 | 2005-06-18 02:44:37.000 | 2430 2430 | 366 366 | 2005-06-18 23:37:37.000 | 2 2 | 2020-12-23 07:15:50 |
| 3632 | 2005-07-06 06:38:21.000 | 2583 2583 | 366 366 | 2005-07-11 03:19:21.000 | 1 1 | 2020-12-23 07:16:10 |
| 3834 | 2005-07-06 16:19:56.000 | 3001 3001 | 366 366 | 2005-07-13 11:38:56.000 | 2 2 | 2020-12-23 07:16:13 |
| 4276 | 2005-07-07 14:50:59.000 | 221 221 | 366 366 | 2005-07-09 15:42:59.000 | 2 2 | 2020-12-23 07:16:20 |
| 4569 | 2005-07-08 05:30:51.000 | 2925 2925 | 366 366 | 2005-07-14 04:14:51.000 | 2 2 | 2020-12-23 07:16:24 |
| 5364 | 2005-07-09 18:24:48.000 | 2746 2746 | 366 366 | 2005-07-10 12:30:48.000 | 1 1 | 2020-12-23 07:16:36 |
| 6112 | 2005-07-11 07:28:05.000 | 1311 1311 | 366 366 | 2005-07-18 07:29:05.000 | 1 1 | 2020-12-23 07:16:47 |
| 6366 | 2005-07-11 21:18:16.000 | 3989 3989 | 366 366 | 2005-07-17 00:21:16.000 | 1 1 | 2020-12-23 07:16:50 |
| 6533 | 2005-07-12 04:39:38.000 | 3853 3853 | 366 366 | 2005-07-18 05:29:38.000 | 1 1 | 2020-12-23 07:16:53 |
| 6738 | 2005-07-12 14:17:55.000 | 1197 1197 | 366 366 | 2005-07-21 10:11:55.000 | 2 2 | 2020-12-23 07:16:56 |
| 6842 | 2005-07-12 19:07:55.000 | 3376 3376 | 366 366 | 2005-07-19 22:47:55.000 | 1 1 | 2020-12-23 07:16:57 |
| 6971 | 2005-07-27 00:26:17.000 | 3493 3493 | 366 366 | 2005-08-01 03:59:17.000 | 2 2 | 2020-12-23 07:16:59 |
| 7344 | 2005-07-27 14:29:28.000 | 1714 1714 | 366 366 | 2005-07-31 15:36:28.000 | 1 1 | 2020-12-23 07:17:05 |
| 7562 | 2005-07-27 22:25:15.000 | 4417 4417 | 366 366 | 2005-08-01 01:21:15.000 | 2 2 | 2020-12-23 07:17:08 |
| 7602 | 2005-07-27 23:48:35.000 | 2516 2516 | 366 366 | 2005-08-04 17:58:35.000 | 1 1 | 2020-12-23 07:17:09 |
| 7805 | 2005-07-28 07:56:41.000 | 3204 3204 | 366 366 | 2005-08-04 06:53:41.000 | 1 1 | 2020-12-23 07:17:12 |
| 8169 | 2005-07-28 21:29:46.000 | 4086 4086 | 366 366 | 2005-08-06 22:29:46.000 | 1 1 | 2020-12-23 07:17:17 |
| 8260 | 2005-07-29 01:11:00.000 | 4249 4249 | 366 366 | 2005-08-06 00:36:00.000 | 1 1 | 2020-12-23 07:17:18 |
| 8928 | 2005-07-30 02:18:19.000 | 706 706 | 366 366 | 2005-08-05 00:49:19.000 | 2 2 | 2020-12-23 07:17:28 |
| 9316 | 2005-07-30 17:11:58.000 | 4409 4409 | 366 366 | 2005-08-05 14:36:58.000 | 1 1 | 2020-12-23 07:17:34 |
| 10198 | 2005-08-01 00:36:15.000 | 1297 1297 | 366 366 | 2005-08-07 06:18:15.000 | 2 2 | 2020-12-23 07:17:46 |
| 10384 | 2005-08-01 06:39:14.000 | 2622 2622 | 366 366 | 2005-08-02 03:06:14.000 | 1 1 | 2020-12-23 07:17:49 |
| 11337 | 2005-08-02 16:59:09.000 | 3428 3428 | 366 366 | 2005-08-10 20:41:09.000 | 2 2 | 2020-12-23 07:18:02 |
| 11340 | 2005-08-02 17:05:43.000 | 1403 1403 | 366 366 | 2005-08-09 13:25:43.000 | 1 1 | 2020-12-23 07:18:02 |
| 12413 | 2005-08-18 09:50:34.000 | 3466 3466 | 366 366 | 2005-08-23 05:57:34.000 | 2 2 | 2020-12-23 07:18:17 |
| 12608 | 2005-08-18 17:05:15.000 | 624 624 | 366 366 | 2005-08-23 17:00:15.000 | 2 2 | 2020-12-23 07:18:19 |
| 13421 | 2006-02-14 15:16:03.000 | 9 9 | 366 366 | 1 1 | 2020-12-23 07:18:32 | |
| 13563 | 2005-08-20 04:33:31.000 | 599 599 | 366 366 | 2005-08-24 07:08:31.000 | 2 2 | 2020-12-23 07:18:34 |
| 13857 | 2005-08-20 14:50:06.000 | 2542 2542 | 366 366 | 2005-08-24 10:38:06.000 | 2 2 | 2020-12-23 07:18:38 |
| 14147 | 2005-08-21 02:14:03.000 | 1476 1476 | 366 366 | 2005-08-27 22:38:03.000 | 1 1 | 2020-12-23 07:18:43 |
| 14290 | 2005-08-21 07:02:59.000 | 790 790 | 366 366 | 2005-08-28 02:57:59.000 | 1 1 | 2020-12-23 07:18:45 |
| 14390 | 2005-08-21 10:15:38.000 | 3951 3951 | 366 366 | 2005-08-28 05:50:38.000 | 2 2 | 2020-12-23 07:18:46 |
| 14717 | 2005-08-21 21:30:39.000 | 3839 3839 | 366 366 | 2005-08-26 16:58:39.000 | 2 2 | 2020-12-23 07:18:51 |
| 14906 | 2005-08-22 04:38:18.000 | 153 153 | 366 366 | 2005-08-29 23:03:18.000 | 1 1 | 2020-12-23 07:18:53 |
| 15514 | 2005-08-23 03:03:40.000 | 2824 2824 | 366 366 | 2005-08-24 01:06:40.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) ;