rental
23 rows where customer_id = 183
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 |
|---|---|---|---|---|---|---|
| 382 | 2005-05-27 10:12:00.000 | 4358 4358 | 183 183 | 2005-05-31 15:03:00.000 | 1 1 | 2020-12-23 07:15:25 |
| 1279 | 2005-06-15 08:13:57.000 | 698 698 | 183 183 | 2005-06-18 09:36:57.000 | 2 2 | 2020-12-23 07:15:37 |
| 2188 | 2005-06-18 01:19:04.000 | 712 712 | 183 183 | 2005-06-25 03:59:04.000 | 2 2 | 2020-12-23 07:15:50 |
| 2471 | 2005-06-18 20:31:00.000 | 3399 3399 | 183 183 | 2005-06-24 18:01:00.000 | 2 2 | 2020-12-23 07:15:54 |
| 3381 | 2005-06-21 14:02:59.000 | 1373 1373 | 183 183 | 2005-06-29 18:11:59.000 | 2 2 | 2020-12-23 07:16:06 |
| 3869 | 2005-07-06 17:56:46.000 | 2540 2540 | 183 183 | 2005-07-10 20:44:46.000 | 1 1 | 2020-12-23 07:16:13 |
| 4134 | 2005-07-07 08:14:24.000 | 2917 2917 | 183 183 | 2005-07-09 10:42:24.000 | 1 1 | 2020-12-23 07:16:18 |
| 4157 | 2005-07-07 09:04:26.000 | 304 304 | 183 183 | 2005-07-08 09:55:26.000 | 1 1 | 2020-12-23 07:16:18 |
| 5069 | 2005-07-09 04:56:30.000 | 4417 4417 | 183 183 | 2005-07-13 23:53:30.000 | 2 2 | 2020-12-23 07:16:32 |
| 5756 | 2005-07-10 12:39:28.000 | 130 130 | 183 183 | 2005-07-11 14:08:28.000 | 2 2 | 2020-12-23 07:16:42 |
| 6472 | 2005-07-12 01:33:25.000 | 3780 3780 | 183 183 | 2005-07-15 20:26:25.000 | 1 1 | 2020-12-23 07:16:52 |
| 6569 | 2005-07-12 05:47:40.000 | 759 759 | 183 183 | 2005-07-20 06:23:40.000 | 2 2 | 2020-12-23 07:16:53 |
| 7359 | 2005-07-27 14:51:04.000 | 174 174 | 183 183 | 2005-07-31 16:03:04.000 | 2 2 | 2020-12-23 07:17:05 |
| 9672 | 2005-07-31 06:34:06.000 | 4394 4394 | 183 183 | 2005-08-08 10:29:06.000 | 2 2 | 2020-12-23 07:17:39 |
| 9818 | 2005-07-31 11:34:32.000 | 1254 1254 | 183 183 | 2005-08-04 08:20:32.000 | 1 1 | 2020-12-23 07:17:41 |
| 9931 | 2005-07-31 15:18:19.000 | 3455 3455 | 183 183 | 2005-08-04 14:23:19.000 | 2 2 | 2020-12-23 07:17:43 |
| 10620 | 2005-08-01 15:09:17.000 | 3064 3064 | 183 183 | 2005-08-09 13:58:17.000 | 1 1 | 2020-12-23 07:17:53 |
| 11386 | 2005-08-02 18:24:03.000 | 519 519 | 183 183 | 2005-08-06 21:22:03.000 | 1 1 | 2020-12-23 07:18:03 |
| 12451 | 2005-08-18 11:04:42.000 | 2780 2780 | 183 183 | 2005-08-20 08:20:42.000 | 1 1 | 2020-12-23 07:18:17 |
| 12764 | 2005-08-18 23:14:15.000 | 26 26 | 183 183 | 2005-08-22 20:23:15.000 | 1 1 | 2020-12-23 07:18:22 |
| 12831 | 2005-08-19 01:40:43.000 | 1916 1916 | 183 183 | 2005-08-28 05:22:43.000 | 1 1 | 2020-12-23 07:18:23 |
| 13482 | 2005-08-20 01:14:30.000 | 1627 1627 | 183 183 | 2005-08-24 04:57:30.000 | 1 1 | 2020-12-23 07:18:32 |
| 13536 | 2005-08-20 03:35:16.000 | 667 667 | 183 183 | 2005-08-25 04:06:16.000 | 2 2 | 2020-12-23 07:18:33 |
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) ;