rental
30 rows where customer_id = 42
This data as json, xlsx, CSV (advanced)
Suggested facets: rental_date, 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 |
|---|---|---|---|---|---|---|
| 635 | 2005-05-28 17:46:57.000 | 1648 1648 | 42 42 | 2005-06-06 18:24:57.000 | 1 1 | 2020-12-23 07:15:28 |
| 1534 | 2005-06-16 00:49:32.000 | 3124 3124 | 42 42 | 2005-06-18 02:41:32.000 | 1 1 | 2020-12-23 07:15:40 |
| 2056 | 2005-06-17 15:27:33.000 | 229 229 | 42 42 | 2005-06-20 13:04:33.000 | 2 2 | 2020-12-23 07:15:48 |
| 2170 | 2005-06-17 23:57:34.000 | 3989 3989 | 42 42 | 2005-06-22 03:37:34.000 | 2 2 | 2020-12-23 07:15:49 |
| 2302 | 2005-06-18 08:27:33.000 | 1852 1852 | 42 42 | 2005-06-22 02:46:33.000 | 2 2 | 2020-12-23 07:15:51 |
| 4391 | 2005-07-07 21:09:38.000 | 2135 2135 | 42 42 | 2005-07-09 17:35:38.000 | 1 1 | 2020-12-23 07:16:21 |
| 5199 | 2005-07-09 10:50:56.000 | 349 349 | 42 42 | 2005-07-10 06:43:56.000 | 1 1 | 2020-12-23 07:16:33 |
| 5517 | 2005-07-10 01:15:00.000 | 3689 3689 | 42 42 | 2005-07-19 01:59:00.000 | 1 1 | 2020-12-23 07:16:38 |
| 5652 | 2005-07-10 07:18:58.000 | 927 927 | 42 42 | 2005-07-19 07:52:58.000 | 1 1 | 2020-12-23 07:16:40 |
| 6179 | 2005-07-11 10:59:59.000 | 3665 3665 | 42 42 | 2005-07-17 06:02:59.000 | 1 1 | 2020-12-23 07:16:47 |
| 6799 | 2005-07-12 16:52:13.000 | 2778 2778 | 42 42 | 2005-07-14 15:11:13.000 | 2 2 | 2020-12-23 07:16:57 |
| 6925 | 2005-07-26 22:52:32.000 | 2919 2919 | 42 42 | 2005-07-29 21:22:32.000 | 1 1 | 2020-12-23 07:16:59 |
| 7405 | 2005-07-27 16:25:11.000 | 2312 2312 | 42 42 | 2005-08-01 12:33:11.000 | 2 2 | 2020-12-23 07:17:06 |
| 8049 | 2005-07-28 16:51:58.000 | 673 673 | 42 42 | 2005-07-31 22:18:58.000 | 1 1 | 2020-12-23 07:17:15 |
| 8095 | 2005-07-28 18:32:40.000 | 2685 2685 | 42 42 | 2005-08-06 23:45:40.000 | 1 1 | 2020-12-23 07:17:16 |
| 8166 | 2005-07-28 21:23:33.000 | 3906 3906 | 42 42 | 2005-08-03 21:07:33.000 | 2 2 | 2020-12-23 07:17:17 |
| 8499 | 2005-07-29 09:10:41.000 | 219 219 | 42 42 | 2005-08-05 10:01:41.000 | 1 1 | 2020-12-23 07:17:22 |
| 8785 | 2005-07-29 20:36:26.000 | 216 216 | 42 42 | 2005-07-30 15:06:26.000 | 1 1 | 2020-12-23 07:17:26 |
| 8852 | 2005-07-29 23:30:03.000 | 1138 1138 | 42 42 | 2005-08-05 05:22:03.000 | 2 2 | 2020-12-23 07:17:27 |
| 8915 | 2005-07-30 01:42:09.000 | 3030 3030 | 42 42 | 2005-08-04 23:29:09.000 | 2 2 | 2020-12-23 07:17:28 |
| 10060 | 2005-07-31 19:23:00.000 | 1979 1979 | 42 42 | 2005-08-08 19:07:00.000 | 1 1 | 2020-12-23 07:17:45 |
| 10345 | 2005-08-01 05:18:56.000 | 3985 3985 | 42 42 | 2005-08-04 01:34:56.000 | 2 2 | 2020-12-23 07:17:48 |
| 10845 | 2005-08-01 23:47:03.000 | 2737 2737 | 42 42 | 2005-08-08 01:57:03.000 | 1 1 | 2020-12-23 07:17:56 |
| 10935 | 2005-08-02 02:54:53.000 | 4373 4373 | 42 42 | 2005-08-10 00:07:53.000 | 2 2 | 2020-12-23 07:17:57 |
| 12478 | 2005-08-18 12:25:16.000 | 4512 4512 | 42 42 | 2005-08-22 06:27:16.000 | 2 2 | 2020-12-23 07:18:18 |
| 12499 | 2005-08-18 13:05:37.000 | 2611 2611 | 42 42 | 2005-08-19 07:41:37.000 | 1 1 | 2020-12-23 07:18:18 |
| 13351 | 2006-02-14 15:16:03.000 | 4130 4130 | 42 42 | 2 2 | 2020-12-23 07:18:30 | |
| 14461 | 2005-08-21 12:50:33.000 | 371 371 | 42 42 | 2005-08-30 13:35:33.000 | 1 1 | 2020-12-23 07:18:47 |
| 15407 | 2006-02-14 15:16:03.000 | 3330 3330 | 42 42 | 2 2 | 2020-12-23 07:19:01 | |
| 15442 | 2005-08-23 00:42:49.000 | 1452 1452 | 42 42 | 2005-08-27 00:35:49.000 | 1 1 | 2020-12-23 07:19:01 |
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) ;