rental
27 rows where customer_id = 491
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 |
|---|---|---|---|---|---|---|
| 484 | 2005-05-27 23:26:45.000 | 3115 3115 | 491 491 | 2005-05-29 21:16:45.000 | 2 2 | 2020-12-23 07:15:26 |
| 1097 | 2005-05-31 13:38:42.000 | 2285 2285 | 491 491 | 2005-06-01 13:54:42.000 | 2 2 | 2020-12-23 07:15:34 |
| 1198 | 2005-06-15 01:48:58.000 | 1138 1138 | 491 491 | 2005-06-20 01:07:58.000 | 2 2 | 2020-12-23 07:15:36 |
| 1371 | 2005-06-15 14:38:15.000 | 760 760 | 491 491 | 2005-06-23 15:36:15.000 | 1 1 | 2020-12-23 07:15:38 |
| 2026 | 2005-06-17 13:05:38.000 | 3681 3681 | 491 491 | 2005-06-21 17:19:38.000 | 1 1 | 2020-12-23 07:15:47 |
| 2259 | 2005-06-18 05:37:45.000 | 4103 4103 | 491 491 | 2005-06-21 01:51:45.000 | 1 1 | 2020-12-23 07:15:51 |
| 2391 | 2005-06-18 15:33:30.000 | 2850 2850 | 491 491 | 2005-06-25 14:30:30.000 | 1 1 | 2020-12-23 07:15:52 |
| 3031 | 2005-06-20 11:52:49.000 | 1184 1184 | 491 491 | 2005-06-22 07:00:49.000 | 1 1 | 2020-12-23 07:16:01 |
| 3440 | 2005-06-21 19:58:18.000 | 853 853 | 491 491 | 2005-06-27 22:08:18.000 | 1 1 | 2020-12-23 07:16:07 |
| 4046 | 2005-07-07 03:27:59.000 | 3518 3518 | 491 491 | 2005-07-14 01:14:59.000 | 1 1 | 2020-12-23 07:16:16 |
| 4392 | 2005-07-07 21:11:02.000 | 4236 4236 | 491 491 | 2005-07-13 21:52:02.000 | 1 1 | 2020-12-23 07:16:21 |
| 5134 | 2005-07-09 07:53:12.000 | 149 149 | 491 491 | 2005-07-16 05:30:12.000 | 1 1 | 2020-12-23 07:16:33 |
| 5889 | 2005-07-10 19:54:41.000 | 1706 1706 | 491 491 | 2005-07-12 20:08:41.000 | 2 2 | 2020-12-23 07:16:44 |
| 6171 | 2005-07-11 10:29:35.000 | 448 448 | 491 491 | 2005-07-16 12:01:35.000 | 1 1 | 2020-12-23 07:16:47 |
| 7019 | 2005-07-27 02:20:26.000 | 3837 3837 | 491 491 | 2005-08-02 22:48:26.000 | 1 1 | 2020-12-23 07:17:00 |
| 7281 | 2005-07-27 11:59:20.000 | 1350 1350 | 491 491 | 2005-08-04 12:48:20.000 | 1 1 | 2020-12-23 07:17:04 |
| 7688 | 2005-07-28 03:20:47.000 | 1179 1179 | 491 491 | 2005-08-06 06:07:47.000 | 2 2 | 2020-12-23 07:17:10 |
| 7871 | 2005-07-28 10:16:37.000 | 3990 3990 | 491 491 | 2005-08-05 11:24:37.000 | 2 2 | 2020-12-23 07:17:13 |
| 10036 | 2005-07-31 18:47:20.000 | 41 41 | 491 491 | 2005-08-03 22:53:20.000 | 1 1 | 2020-12-23 07:17:44 |
| 10178 | 2005-07-31 23:43:04.000 | 1582 1582 | 491 491 | 2005-08-03 00:43:04.000 | 1 1 | 2020-12-23 07:17:46 |
| 10974 | 2005-08-02 04:10:52.000 | 690 690 | 491 491 | 2005-08-09 08:26:52.000 | 1 1 | 2020-12-23 07:17:57 |
| 11048 | 2005-08-02 06:15:07.000 | 206 206 | 491 491 | 2005-08-04 02:47:07.000 | 2 2 | 2020-12-23 07:17:58 |
| 11590 | 2005-08-17 02:28:33.000 | 3600 3600 | 491 491 | 2005-08-20 03:13:33.000 | 1 1 | 2020-12-23 07:18:06 |
| 11840 | 2005-08-17 13:09:01.000 | 1824 1824 | 491 491 | 2005-08-19 17:42:01.000 | 1 1 | 2020-12-23 07:18:09 |
| 13607 | 2005-08-20 06:08:42.000 | 2692 2692 | 491 491 | 2005-08-21 01:59:42.000 | 2 2 | 2020-12-23 07:18:34 |
| 14780 | 2005-08-22 00:06:33.000 | 3171 3171 | 491 491 | 2005-08-22 22:02:33.000 | 2 2 | 2020-12-23 07:18:51 |
| 15685 | 2005-08-23 09:41:28.000 | 370 370 | 491 491 | 2005-08-30 10:11:28.000 | 1 1 | 2020-12-23 07:19:04 |
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) ;