rental
18 rows where customer_id = 271
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 |
|---|---|---|---|---|---|---|
| 1096 | 2005-05-31 13:30:49.000 | 1066 1066 | 271 271 | 2005-06-09 13:53:49.000 | 1 1 | 2020-12-23 07:15:34 |
| 1852 | 2005-06-17 00:38:20.000 | 4122 4122 | 271 271 | 2005-06-22 20:04:20.000 | 2 2 | 2020-12-23 07:15:44 |
| 3640 | 2005-07-06 07:12:26.000 | 3432 3432 | 271 271 | 2005-07-10 04:54:26.000 | 2 2 | 2020-12-23 07:16:10 |
| 4545 | 2005-07-08 04:17:47.000 | 3658 3658 | 271 271 | 2005-07-13 07:19:47.000 | 1 1 | 2020-12-23 07:16:24 |
| 5878 | 2005-07-10 19:09:57.000 | 3805 3805 | 271 271 | 2005-07-16 17:22:57.000 | 1 1 | 2020-12-23 07:16:43 |
| 5922 | 2005-07-10 21:36:53.000 | 1392 1392 | 271 271 | 2005-07-16 02:51:53.000 | 1 1 | 2020-12-23 07:16:44 |
| 6024 | 2005-07-11 02:16:47.000 | 2923 2923 | 271 271 | 2005-07-12 05:54:47.000 | 1 1 | 2020-12-23 07:16:45 |
| 7618 | 2005-07-28 00:24:14.000 | 774 774 | 271 271 | 2005-08-01 04:35:14.000 | 1 1 | 2020-12-23 07:17:09 |
| 8592 | 2005-07-29 12:33:58.000 | 1952 1952 | 271 271 | 2005-08-04 07:14:58.000 | 2 2 | 2020-12-23 07:17:23 |
| 9821 | 2005-07-31 11:47:54.000 | 386 386 | 271 271 | 2005-08-08 06:21:54.000 | 2 2 | 2020-12-23 07:17:41 |
| 10143 | 2005-07-31 22:11:43.000 | 2139 2139 | 271 271 | 2005-08-09 17:48:43.000 | 2 2 | 2020-12-23 07:17:46 |
| 10310 | 2005-08-01 04:24:47.000 | 9 9 | 271 271 | 2005-08-04 05:36:47.000 | 2 2 | 2020-12-23 07:17:48 |
| 10599 | 2005-08-01 14:23:58.000 | 2422 2422 | 271 271 | 2005-08-06 10:45:58.000 | 2 2 | 2020-12-23 07:17:52 |
| 11431 | 2005-08-02 20:05:16.000 | 1409 1409 | 271 271 | 2005-08-04 00:05:16.000 | 2 2 | 2020-12-23 07:18:04 |
| 12219 | 2005-08-18 02:49:54.000 | 2249 2249 | 271 271 | 2005-08-23 07:52:54.000 | 1 1 | 2020-12-23 07:18:14 |
| 14234 | 2005-08-21 05:07:12.000 | 1439 1439 | 271 271 | 2005-08-23 06:44:12.000 | 2 2 | 2020-12-23 07:18:44 |
| 14355 | 2005-08-21 09:08:29.000 | 649 649 | 271 271 | 2005-08-27 10:08:29.000 | 2 2 | 2020-12-23 07:18:46 |
| 15244 | 2005-08-22 17:48:42.000 | 1486 1486 | 271 271 | 2005-08-28 13:17:42.000 | 2 2 | 2020-12-23 07:18:58 |
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) ;