rental
22 rows where customer_id = 67
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 |
|---|---|---|---|---|---|---|
| 331 | 2005-05-27 02:22:26.000 | 1872 1872 | 67 67 | 2005-06-05 00:25:26.000 | 1 1 | 2020-12-23 07:15:24 |
| 767 | 2005-05-29 12:20:19.000 | 687 687 | 67 67 | 2005-06-02 14:15:19.000 | 2 2 | 2020-12-23 07:15:30 |
| 2064 | 2005-06-17 15:57:56.000 | 1970 1970 | 67 67 | 2005-06-23 21:04:56.000 | 2 2 | 2020-12-23 07:15:48 |
| 2542 | 2005-06-19 02:08:39.000 | 1446 1446 | 67 67 | 2005-06-26 20:25:39.000 | 1 1 | 2020-12-23 07:15:54 |
| 2810 | 2005-06-19 19:44:12.000 | 2558 2558 | 67 67 | 2005-06-20 19:41:12.000 | 2 2 | 2020-12-23 07:15:58 |
| 3359 | 2005-06-21 12:08:18.000 | 3825 3825 | 67 67 | 2005-06-25 16:35:18.000 | 2 2 | 2020-12-23 07:16:06 |
| 4090 | 2005-07-07 05:47:33.000 | 3096 3096 | 67 67 | 2005-07-08 04:25:33.000 | 2 2 | 2020-12-23 07:16:17 |
| 5399 | 2005-07-09 19:52:44.000 | 261 261 | 67 67 | 2005-07-10 18:31:44.000 | 2 2 | 2020-12-23 07:16:36 |
| 5510 | 2005-07-10 00:58:37.000 | 1298 1298 | 67 67 | 2005-07-17 22:02:37.000 | 2 2 | 2020-12-23 07:16:38 |
| 6137 | 2005-07-11 08:34:20.000 | 2029 2029 | 67 67 | 2005-07-13 03:31:20.000 | 2 2 | 2020-12-23 07:16:47 |
| 7277 | 2005-07-27 11:48:37.000 | 1544 1544 | 67 67 | 2005-08-03 07:20:37.000 | 1 1 | 2020-12-23 07:17:04 |
| 7895 | 2005-07-28 10:57:15.000 | 900 900 | 67 67 | 2005-08-02 15:10:15.000 | 2 2 | 2020-12-23 07:17:13 |
| 8563 | 2005-07-29 11:32:58.000 | 61 61 | 67 67 | 2005-08-05 07:21:58.000 | 2 2 | 2020-12-23 07:17:23 |
| 9640 | 2005-07-31 05:33:25.000 | 1067 1067 | 67 67 | 2005-08-09 09:41:25.000 | 1 1 | 2020-12-23 07:17:38 |
| 11295 | 2005-08-02 15:10:06.000 | 423 423 | 67 67 | 2005-08-10 09:52:06.000 | 1 1 | 2020-12-23 07:18:02 |
| 11894 | 2005-08-17 15:15:01.000 | 1223 1223 | 67 67 | 2005-08-26 13:49:01.000 | 1 1 | 2020-12-23 07:18:10 |
| 13437 | 2005-08-19 23:37:52.000 | 2292 2292 | 67 67 | 2005-08-28 22:17:52.000 | 1 1 | 2020-12-23 07:18:32 |
| 13652 | 2005-08-20 07:52:34.000 | 2548 2548 | 67 67 | 2005-08-23 08:58:34.000 | 2 2 | 2020-12-23 07:18:35 |
| 13791 | 2005-08-20 12:21:05.000 | 1890 1890 | 67 67 | 2005-08-22 17:58:05.000 | 1 1 | 2020-12-23 07:18:37 |
| 13837 | 2005-08-20 14:19:03.000 | 3220 3220 | 67 67 | 2005-08-22 16:25:03.000 | 2 2 | 2020-12-23 07:18:38 |
| 14967 | 2005-08-22 06:46:03.000 | 289 289 | 67 67 | 2005-08-23 01:02:03.000 | 2 2 | 2020-12-23 07:18:54 |
| 15085 | 2005-08-22 11:19:22.000 | 1669 1669 | 67 67 | 2005-08-25 09:04:22.000 | 2 2 | 2020-12-23 07:18:56 |
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) ;