rental
23 rows where customer_id = 249
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 |
|---|---|---|---|---|---|---|
| 316 | 2005-05-26 23:22:55.000 | 3828 3828 | 249 249 | 2005-05-29 23:25:55.000 | 2 2 | 2020-12-23 07:15:24 |
| 400 | 2005-05-27 12:51:44.000 | 258 258 | 249 249 | 2005-05-31 08:34:44.000 | 2 2 | 2020-12-23 07:15:25 |
| 438 | 2005-05-27 17:52:34.000 | 4260 4260 | 249 249 | 2005-06-05 22:23:34.000 | 2 2 | 2020-12-23 07:15:25 |
| 597 | 2005-05-28 14:01:02.000 | 4469 4469 | 249 249 | 2005-06-06 19:06:02.000 | 2 2 | 2020-12-23 07:15:27 |
| 1204 | 2005-06-15 02:21:46.000 | 2450 2450 | 249 249 | 2005-06-20 07:14:46.000 | 2 2 | 2020-12-23 07:15:36 |
| 1473 | 2005-06-15 20:55:20.000 | 2377 2377 | 249 249 | 2005-06-21 16:40:20.000 | 2 2 | 2020-12-23 07:15:39 |
| 1753 | 2005-06-16 17:08:17.000 | 3817 3817 | 249 249 | 2005-06-21 21:47:17.000 | 2 2 | 2020-12-23 07:15:43 |
| 2129 | 2005-06-17 20:58:32.000 | 1930 1930 | 249 249 | 2005-06-23 22:22:32.000 | 1 1 | 2020-12-23 07:15:49 |
| 3175 | 2005-06-20 22:30:23.000 | 4093 4093 | 249 249 | 2005-06-30 03:28:23.000 | 2 2 | 2020-12-23 07:16:03 |
| 4352 | 2005-07-07 19:15:58.000 | 2636 2636 | 249 249 | 2005-07-16 20:22:58.000 | 2 2 | 2020-12-23 07:16:21 |
| 5011 | 2005-07-09 01:44:40.000 | 463 463 | 249 249 | 2005-07-11 00:58:40.000 | 2 2 | 2020-12-23 07:16:31 |
| 5275 | 2005-07-09 14:34:18.000 | 729 729 | 249 249 | 2005-07-13 12:56:18.000 | 2 2 | 2020-12-23 07:16:34 |
| 5639 | 2005-07-10 06:33:39.000 | 2452 2452 | 249 249 | 2005-07-19 07:47:39.000 | 1 1 | 2020-12-23 07:16:40 |
| 6670 | 2005-07-12 11:44:33.000 | 3106 3106 | 249 249 | 2005-07-19 07:54:33.000 | 2 2 | 2020-12-23 07:16:55 |
| 7544 | 2005-07-27 21:47:37.000 | 766 766 | 249 249 | 2005-08-05 02:29:37.000 | 2 2 | 2020-12-23 07:17:08 |
| 7804 | 2005-07-28 07:56:00.000 | 592 592 | 249 249 | 2005-07-30 10:33:00.000 | 2 2 | 2020-12-23 07:17:12 |
| 7881 | 2005-07-28 10:33:22.000 | 533 533 | 249 249 | 2005-08-02 12:10:22.000 | 1 1 | 2020-12-23 07:17:13 |
| 11124 | 2005-08-02 08:55:25.000 | 698 698 | 249 249 | 2005-08-10 10:59:25.000 | 1 1 | 2020-12-23 07:17:59 |
| 11159 | 2005-08-02 10:00:55.000 | 4575 4575 | 249 249 | 2005-08-05 10:38:55.000 | 1 1 | 2020-12-23 07:18:00 |
| 11668 | 2005-08-17 05:47:32.000 | 2162 2162 | 249 249 | 2005-08-20 03:11:32.000 | 1 1 | 2020-12-23 07:18:07 |
| 13981 | 2005-08-20 19:07:20.000 | 3342 3342 | 249 249 | 2005-08-23 15:13:20.000 | 1 1 | 2020-12-23 07:18:40 |
| 14285 | 2005-08-21 06:50:48.000 | 402 402 | 249 249 | 2005-08-28 11:35:48.000 | 1 1 | 2020-12-23 07:18:45 |
| 15160 | 2005-08-22 14:33:50.000 | 4321 4321 | 249 249 | 2005-08-28 11:26:50.000 | 1 1 | 2020-12-23 07:18:57 |
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) ;