rental
28 rows where customer_id = 497
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 |
|---|---|---|---|---|---|---|
| 1100 | 2005-05-31 14:03:21.000 | 316 316 | 497 497 | 2005-06-06 16:08:21.000 | 1 1 | 2020-12-23 07:15:34 |
| 2180 | 2005-06-18 00:47:43.000 | 3564 3564 | 497 497 | 2005-06-25 04:12:43.000 | 2 2 | 2020-12-23 07:15:49 |
| 2298 | 2005-06-18 08:18:29.000 | 1227 1227 | 497 497 | 2005-06-24 11:51:29.000 | 1 1 | 2020-12-23 07:15:51 |
| 2406 | 2005-06-18 16:39:37.000 | 1321 1321 | 497 497 | 2005-06-23 12:04:37.000 | 1 1 | 2020-12-23 07:15:53 |
| 2818 | 2005-06-19 20:05:52.000 | 2376 2376 | 497 497 | 2005-06-22 01:01:52.000 | 2 2 | 2020-12-23 07:15:58 |
| 3696 | 2005-07-06 10:04:55.000 | 3244 3244 | 497 497 | 2005-07-11 15:58:55.000 | 2 2 | 2020-12-23 07:16:11 |
| 4218 | 2005-07-07 12:10:24.000 | 152 152 | 497 497 | 2005-07-15 16:09:24.000 | 1 1 | 2020-12-23 07:16:19 |
| 4516 | 2005-07-08 02:43:41.000 | 2314 2314 | 497 497 | 2005-07-14 02:20:41.000 | 1 1 | 2020-12-23 07:16:23 |
| 4578 | 2005-07-08 06:00:17.000 | 1533 1533 | 497 497 | 2005-07-10 06:58:17.000 | 2 2 | 2020-12-23 07:16:24 |
| 4795 | 2005-07-08 16:32:54.000 | 3409 3409 | 497 497 | 2005-07-09 14:15:54.000 | 1 1 | 2020-12-23 07:16:27 |
| 5030 | 2005-07-09 02:35:43.000 | 25 25 | 497 497 | 2005-07-17 02:05:43.000 | 1 1 | 2020-12-23 07:16:31 |
| 5239 | 2005-07-09 13:12:35.000 | 380 380 | 497 497 | 2005-07-10 13:37:35.000 | 1 1 | 2020-12-23 07:16:34 |
| 7603 | 2005-07-27 23:54:44.000 | 124 124 | 497 497 | 2005-07-29 01:24:44.000 | 1 1 | 2020-12-23 07:17:09 |
| 8011 | 2005-07-28 15:26:39.000 | 4274 4274 | 497 497 | 2005-07-30 13:59:39.000 | 1 1 | 2020-12-23 07:17:14 |
| 8150 | 2005-07-28 20:50:41.000 | 3489 3489 | 497 497 | 2005-08-02 00:43:41.000 | 1 1 | 2020-12-23 07:17:17 |
| 8813 | 2005-07-29 21:47:55.000 | 3442 3442 | 497 497 | 2005-08-05 01:16:55.000 | 1 1 | 2020-12-23 07:17:26 |
| 8867 | 2005-07-30 00:02:18.000 | 1388 1388 | 497 497 | 2005-08-04 00:44:18.000 | 2 2 | 2020-12-23 07:17:27 |
| 9273 | 2005-07-30 15:05:36.000 | 1867 1867 | 497 497 | 2005-08-08 09:07:36.000 | 1 1 | 2020-12-23 07:17:33 |
| 9850 | 2005-07-31 12:46:52.000 | 1461 1461 | 497 497 | 2005-08-04 10:52:52.000 | 2 2 | 2020-12-23 07:17:42 |
| 10760 | 2005-08-01 20:25:20.000 | 1311 1311 | 497 497 | 2005-08-09 16:57:20.000 | 1 1 | 2020-12-23 07:17:54 |
| 12123 | 2005-08-17 23:22:18.000 | 361 361 | 497 497 | 2005-08-19 23:36:18.000 | 2 2 | 2020-12-23 07:18:13 |
| 12698 | 2006-02-14 15:16:03.000 | 3657 3657 | 497 497 | 1 1 | 2020-12-23 07:18:21 | |
| 13159 | 2005-08-19 13:19:59.000 | 2300 2300 | 497 497 | 2005-08-21 09:22:59.000 | 2 2 | 2020-12-23 07:18:28 |
| 13289 | 2005-08-19 18:31:30.000 | 3527 3527 | 497 497 | 2005-08-20 13:43:30.000 | 1 1 | 2020-12-23 07:18:30 |
| 14134 | 2005-08-21 01:45:54.000 | 2159 2159 | 497 497 | 2005-08-24 01:36:54.000 | 1 1 | 2020-12-23 07:18:43 |
| 15362 | 2005-08-22 21:40:20.000 | 1023 1023 | 497 497 | 2005-08-29 15:55:20.000 | 1 1 | 2020-12-23 07:19:00 |
| 15633 | 2005-08-23 07:31:10.000 | 882 882 | 497 497 | 2005-08-26 04:35:10.000 | 2 2 | 2020-12-23 07:19:04 |
| 15919 | 2005-08-23 18:01:31.000 | 1746 1746 | 497 497 | 2005-08-24 16:27:31.000 | 1 1 | 2020-12-23 07:19:08 |
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) ;