rental
28 rows where customer_id = 589
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 |
|---|---|---|---|---|---|---|
| 531 | 2005-05-28 05:23:38.000 | 1113 1113 | 589 589 | 2005-05-29 08:00:38.000 | 2 2 | 2020-12-23 07:15:26 |
| 596 | 2005-05-28 14:00:03.000 | 821 821 | 589 589 | 2005-05-29 17:10:03.000 | 1 1 | 2020-12-23 07:15:27 |
| 737 | 2005-05-29 08:11:31.000 | 769 769 | 589 589 | 2005-06-04 11:18:31.000 | 2 2 | 2020-12-23 07:15:29 |
| 1439 | 2005-06-15 18:45:32.000 | 3155 3155 | 589 589 | 2005-06-22 15:57:32.000 | 2 2 | 2020-12-23 07:15:39 |
| 1703 | 2005-06-16 13:28:44.000 | 2346 2346 | 589 589 | 2005-06-17 11:03:44.000 | 1 1 | 2020-12-23 07:15:42 |
| 2652 | 2005-06-19 10:35:26.000 | 3108 3108 | 589 589 | 2005-06-28 08:03:26.000 | 1 1 | 2020-12-23 07:15:56 |
| 2707 | 2005-06-19 13:57:08.000 | 4486 4486 | 589 589 | 2005-06-27 11:09:08.000 | 2 2 | 2020-12-23 07:15:57 |
| 2979 | 2005-06-20 08:31:05.000 | 3961 3961 | 589 589 | 2005-06-27 12:25:05.000 | 1 1 | 2020-12-23 07:16:00 |
| 4986 | 2005-07-09 00:44:33.000 | 3517 3517 | 589 589 | 2005-07-09 19:45:33.000 | 2 2 | 2020-12-23 07:16:30 |
| 5951 | 2005-07-10 23:14:29.000 | 2501 2501 | 589 589 | 2005-07-13 01:01:29.000 | 1 1 | 2020-12-23 07:16:44 |
| 6177 | 2005-07-11 10:53:49.000 | 313 313 | 589 589 | 2005-07-17 14:54:49.000 | 1 1 | 2020-12-23 07:16:47 |
| 6247 | 2005-07-11 15:00:05.000 | 2504 2504 | 589 589 | 2005-07-18 13:47:05.000 | 1 1 | 2020-12-23 07:16:48 |
| 7250 | 2005-07-27 10:44:09.000 | 3410 3410 | 589 589 | 2005-07-28 11:47:09.000 | 1 1 | 2020-12-23 07:17:03 |
| 7431 | 2005-07-27 17:27:27.000 | 3931 3931 | 589 589 | 2005-07-31 18:40:27.000 | 1 1 | 2020-12-23 07:17:06 |
| 7948 | 2005-07-28 13:06:16.000 | 215 215 | 589 589 | 2005-08-05 08:38:16.000 | 1 1 | 2020-12-23 07:17:14 |
| 8056 | 2005-07-28 17:04:15.000 | 4018 4018 | 589 589 | 2005-08-03 19:11:15.000 | 2 2 | 2020-12-23 07:17:15 |
| 8374 | 2005-07-29 05:24:02.000 | 1084 1084 | 589 589 | 2005-08-05 03:55:02.000 | 1 1 | 2020-12-23 07:17:20 |
| 9153 | 2005-07-30 10:58:16.000 | 3743 3743 | 589 589 | 2005-08-03 06:16:16.000 | 2 2 | 2020-12-23 07:17:31 |
| 10544 | 2005-08-01 12:36:21.000 | 3195 3195 | 589 589 | 2005-08-07 12:25:21.000 | 2 2 | 2020-12-23 07:17:51 |
| 11980 | 2005-08-17 18:10:18.000 | 4165 4165 | 589 589 | 2005-08-20 13:28:18.000 | 1 1 | 2020-12-23 07:18:11 |
| 12738 | 2005-08-18 22:11:47.000 | 4313 4313 | 589 589 | 2005-08-27 17:55:47.000 | 2 2 | 2020-12-23 07:18:21 |
| 12933 | 2005-08-19 05:18:20.000 | 4103 4103 | 589 589 | 2005-08-27 00:13:20.000 | 1 1 | 2020-12-23 07:18:24 |
| 14038 | 2005-08-20 21:39:23.000 | 1069 1069 | 589 589 | 2005-08-27 23:57:23.000 | 2 2 | 2020-12-23 07:18:41 |
| 14254 | 2005-08-21 05:51:28.000 | 1549 1549 | 589 589 | 2005-08-29 06:05:28.000 | 2 2 | 2020-12-23 07:18:44 |
| 14544 | 2005-08-21 15:41:01.000 | 2445 2445 | 589 589 | 2005-08-24 15:20:01.000 | 1 1 | 2020-12-23 07:18:48 |
| 14706 | 2005-08-21 21:04:42.000 | 4494 4494 | 589 589 | 2005-08-22 19:55:42.000 | 2 2 | 2020-12-23 07:18:50 |
| 15917 | 2005-08-23 17:57:28.000 | 2093 2093 | 589 589 | 2005-08-29 20:03:28.000 | 1 1 | 2020-12-23 07:19:08 |
| 15992 | 2005-08-23 20:28:32.000 | 3334 3334 | 589 589 | 2005-08-24 21:35:32.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) ;