rental
23 rows where customer_id = 311
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 |
|---|---|---|---|---|---|---|
| 274 | 2005-05-26 16:48:51.000 | 656 656 | 311 311 | 2005-06-03 18:17:51.000 | 1 1 | 2020-12-23 07:15:23 |
| 544 | 2005-05-28 07:03:00.000 | 2964 2964 | 311 311 | 2005-06-06 06:23:00.000 | 1 1 | 2020-12-23 07:15:27 |
| 952 | 2005-05-30 16:28:07.000 | 4389 4389 | 311 311 | 2005-06-02 16:12:07.000 | 2 2 | 2020-12-23 07:15:32 |
| 990 | 2005-05-30 23:25:14.000 | 4171 4171 | 311 311 | 2005-06-06 18:41:14.000 | 2 2 | 2020-12-23 07:15:33 |
| 1128 | 2005-05-31 17:49:26.000 | 1496 1496 | 311 311 | 2005-06-05 19:51:26.000 | 2 2 | 2020-12-23 07:15:35 |
| 1622 | 2005-06-16 07:33:18.000 | 1774 1774 | 311 311 | 2005-06-21 07:23:18.000 | 1 1 | 2020-12-23 07:15:41 |
| 1955 | 2005-06-17 08:40:22.000 | 811 811 | 311 311 | 2005-06-19 10:47:22.000 | 1 1 | 2020-12-23 07:15:46 |
| 2967 | 2005-06-20 07:40:35.000 | 4243 4243 | 311 311 | 2005-06-29 05:50:35.000 | 2 2 | 2020-12-23 07:16:00 |
| 4836 | 2005-07-08 18:09:08.000 | 2756 2756 | 311 311 | 2005-07-15 20:19:08.000 | 1 1 | 2020-12-23 07:16:28 |
| 5224 | 2005-07-09 12:07:27.000 | 279 279 | 311 311 | 2005-07-17 08:59:27.000 | 1 1 | 2020-12-23 07:16:34 |
| 6419 | 2005-07-11 23:36:38.000 | 3683 3683 | 311 311 | 2005-07-13 03:23:38.000 | 1 1 | 2020-12-23 07:16:51 |
| 8167 | 2005-07-28 21:25:45.000 | 3181 3181 | 311 311 | 2005-08-04 18:04:45.000 | 1 1 | 2020-12-23 07:17:17 |
| 8473 | 2005-07-29 08:36:53.000 | 4141 4141 | 311 311 | 2005-07-31 12:14:53.000 | 1 1 | 2020-12-23 07:17:21 |
| 9503 | 2005-07-31 00:02:38.000 | 1013 1013 | 311 311 | 2005-08-06 06:01:38.000 | 1 1 | 2020-12-23 07:17:36 |
| 9882 | 2005-07-31 13:53:33.000 | 1429 1429 | 311 311 | 2005-08-09 15:55:33.000 | 1 1 | 2020-12-23 07:17:42 |
| 10134 | 2005-07-31 21:56:10.000 | 4483 4483 | 311 311 | 2005-08-06 21:20:10.000 | 1 1 | 2020-12-23 07:17:46 |
| 10448 | 2005-08-01 09:09:31.000 | 2254 2254 | 311 311 | 2005-08-02 09:55:31.000 | 2 2 | 2020-12-23 07:17:50 |
| 12997 | 2005-08-19 07:31:46.000 | 1661 1661 | 311 311 | 2005-08-24 09:20:46.000 | 2 2 | 2020-12-23 07:18:25 |
| 13310 | 2005-08-19 19:05:16.000 | 2563 2563 | 311 311 | 2005-08-23 22:47:16.000 | 1 1 | 2020-12-23 07:18:30 |
| 13423 | 2005-08-19 23:07:42.000 | 546 546 | 311 311 | 2005-08-26 20:45:42.000 | 1 1 | 2020-12-23 07:18:32 |
| 14517 | 2005-08-21 14:57:03.000 | 3568 3568 | 311 311 | 2005-08-24 13:52:03.000 | 2 2 | 2020-12-23 07:18:48 |
| 15826 | 2005-08-23 15:15:02.000 | 215 215 | 311 311 | 2005-08-31 20:39:02.000 | 2 2 | 2020-12-23 07:19:07 |
| 16020 | 2005-08-23 21:34:33.000 | 277 277 | 311 311 | 2005-09-01 18:17:33.000 | 1 1 | 2020-12-23 07:19:09 |
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) ;