rental
22 rows where customer_id = 247
This data as json, xlsx, CSV (advanced)
Suggested facets: 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 |
|---|---|---|---|---|---|---|
| 189 | 2005-05-26 06:01:41.000 | 984 984 | 247 247 | 2005-05-27 06:11:41.000 | 1 1 | 2020-12-23 07:15:22 |
| 448 | 2005-05-27 19:03:08.000 | 2671 2671 | 247 247 | 2005-06-03 20:28:08.000 | 2 2 | 2020-12-23 07:15:25 |
| 450 | 2005-05-27 19:18:54.000 | 1343 1343 | 247 247 | 2005-06-05 23:52:54.000 | 1 1 | 2020-12-23 07:15:26 |
| 2288 | 2005-06-18 07:23:17.000 | 877 877 | 247 247 | 2005-06-26 07:44:17.000 | 2 2 | 2020-12-23 07:15:51 |
| 3955 | 2005-07-06 21:58:08.000 | 2523 2523 | 247 247 | 2005-07-08 03:43:08.000 | 1 1 | 2020-12-23 07:16:15 |
| 4198 | 2005-07-07 11:08:11.000 | 333 333 | 247 247 | 2005-07-16 15:29:11.000 | 1 1 | 2020-12-23 07:16:19 |
| 4492 | 2005-07-08 01:32:04.000 | 1152 1152 | 247 247 | 2005-07-10 22:11:04.000 | 1 1 | 2020-12-23 07:16:23 |
| 4995 | 2005-07-09 00:57:46.000 | 2063 2063 | 247 247 | 2005-07-13 03:32:46.000 | 1 1 | 2020-12-23 07:16:31 |
| 5328 | 2005-07-09 16:48:29.000 | 2444 2444 | 247 247 | 2005-07-17 20:20:29.000 | 2 2 | 2020-12-23 07:16:35 |
| 5842 | 2005-07-10 17:11:37.000 | 139 139 | 247 247 | 2005-07-14 21:43:37.000 | 1 1 | 2020-12-23 07:16:43 |
| 7963 | 2005-07-28 13:48:38.000 | 921 921 | 247 247 | 2005-08-06 19:37:38.000 | 2 2 | 2020-12-23 07:17:14 |
| 10279 | 2005-08-01 03:26:44.000 | 3794 3794 | 247 247 | 2005-08-07 22:35:44.000 | 2 2 | 2020-12-23 07:17:47 |
| 10410 | 2005-08-01 07:53:29.000 | 3901 3901 | 247 247 | 2005-08-10 08:56:29.000 | 1 1 | 2020-12-23 07:17:49 |
| 11204 | 2005-08-02 11:56:31.000 | 3578 3578 | 247 247 | 2005-08-06 14:16:31.000 | 2 2 | 2020-12-23 07:18:00 |
| 11306 | 2005-08-02 15:45:10.000 | 13 13 | 247 247 | 2005-08-03 21:14:10.000 | 2 2 | 2020-12-23 07:18:02 |
| 11495 | 2005-08-16 22:51:20.000 | 1265 1265 | 247 247 | 2005-08-23 00:44:20.000 | 1 1 | 2020-12-23 07:18:05 |
| 12265 | 2005-08-18 04:22:01.000 | 537 537 | 247 247 | 2005-08-20 03:22:01.000 | 1 1 | 2020-12-23 07:18:15 |
| 12482 | 2005-08-18 12:37:36.000 | 3778 3778 | 247 247 | 2005-08-26 09:53:36.000 | 1 1 | 2020-12-23 07:18:18 |
| 12491 | 2005-08-18 12:48:45.000 | 2354 2354 | 247 247 | 2005-08-22 12:40:45.000 | 2 2 | 2020-12-23 07:18:18 |
| 12824 | 2005-08-19 01:18:00.000 | 1875 1875 | 247 247 | 2005-08-22 01:12:00.000 | 2 2 | 2020-12-23 07:18:22 |
| 14041 | 2005-08-20 21:45:23.000 | 52 52 | 247 247 | 2005-08-26 01:42:23.000 | 1 1 | 2020-12-23 07:18:41 |
| 15783 | 2005-08-23 13:45:44.000 | 397 397 | 247 247 | 2005-08-26 09:18:44.000 | 2 2 | 2020-12-23 07:19:06 |
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) ;