rental
21 rows where customer_id = 489
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 |
|---|---|---|---|---|---|---|
| 219 | 2005-05-26 09:41:45.000 | 3074 3074 | 489 489 | 2005-05-28 04:40:45.000 | 1 1 | 2020-12-23 07:15:22 |
| 513 | 2005-05-28 03:08:10.000 | 225 225 | 489 489 | 2005-05-29 07:22:10.000 | 1 1 | 2020-12-23 07:15:26 |
| 1614 | 2005-06-16 06:58:02.000 | 23 23 | 489 489 | 2005-06-23 11:24:02.000 | 1 1 | 2020-12-23 07:15:41 |
| 2201 | 2005-06-18 02:08:27.000 | 1864 1864 | 489 489 | 2005-06-23 01:40:27.000 | 1 1 | 2020-12-23 07:15:50 |
| 2370 | 2005-06-18 14:29:54.000 | 2656 2656 | 489 489 | 2005-06-24 10:23:54.000 | 1 1 | 2020-12-23 07:15:52 |
| 2802 | 2005-06-19 19:18:17.000 | 4067 4067 | 489 489 | 2005-06-21 17:58:17.000 | 2 2 | 2020-12-23 07:15:58 |
| 3816 | 2005-07-06 15:27:04.000 | 2941 2941 | 489 489 | 2005-07-14 13:12:04.000 | 1 1 | 2020-12-23 07:16:13 |
| 4774 | 2005-07-08 15:42:28.000 | 673 673 | 489 489 | 2005-07-16 18:29:28.000 | 2 2 | 2020-12-23 07:16:27 |
| 6963 | 2005-07-27 00:13:02.000 | 4284 4284 | 489 489 | 2005-08-03 18:13:02.000 | 1 1 | 2020-12-23 07:16:59 |
| 9231 | 2005-07-30 13:42:15.000 | 1587 1587 | 489 489 | 2005-08-02 19:27:15.000 | 1 1 | 2020-12-23 07:17:33 |
| 9459 | 2005-07-30 22:24:46.000 | 1132 1132 | 489 489 | 2005-08-02 00:44:46.000 | 2 2 | 2020-12-23 07:17:36 |
| 11119 | 2005-08-02 08:44:44.000 | 4307 4307 | 489 489 | 2005-08-10 11:32:44.000 | 2 2 | 2020-12-23 07:17:59 |
| 11705 | 2005-08-17 07:22:25.000 | 4242 4242 | 489 489 | 2005-08-18 06:42:25.000 | 1 1 | 2020-12-23 07:18:07 |
| 12496 | 2005-08-18 12:58:25.000 | 456 456 | 489 489 | 2005-08-27 18:43:25.000 | 2 2 | 2020-12-23 07:18:18 |
| 12701 | 2005-08-18 20:26:47.000 | 2337 2337 | 489 489 | 2005-08-26 23:36:47.000 | 2 2 | 2020-12-23 07:18:21 |
| 13462 | 2005-08-20 00:49:19.000 | 3865 3865 | 489 489 | 2005-08-26 06:21:19.000 | 2 2 | 2020-12-23 07:18:32 |
| 14095 | 2005-08-21 00:25:45.000 | 1550 1550 | 489 489 | 2005-08-28 23:00:45.000 | 1 1 | 2020-12-23 07:18:42 |
| 14328 | 2005-08-21 08:18:20.000 | 3194 3194 | 489 489 | 2005-08-25 03:05:20.000 | 2 2 | 2020-12-23 07:18:45 |
| 14424 | 2005-08-21 11:24:11.000 | 2535 2535 | 489 489 | 2005-08-29 13:13:11.000 | 2 2 | 2020-12-23 07:18:47 |
| 15205 | 2005-08-22 16:32:23.000 | 3276 3276 | 489 489 | 2005-08-27 16:08:23.000 | 1 1 | 2020-12-23 07:18:58 |
| 15981 | 2005-08-23 20:12:17.000 | 2867 2867 | 489 489 | 2005-08-30 20:43:17.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) ;