rental
27 rows where customer_id = 579
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 |
|---|---|---|---|---|---|---|
| 2425 | 2005-06-18 17:37:45.000 | 2630 2630 | 579 579 | 2005-06-27 18:40:45.000 | 2 2 | 2020-12-23 07:15:53 |
| 2522 | 2005-06-19 00:43:42.000 | 550 550 | 579 579 | 2005-06-28 04:26:42.000 | 1 1 | 2020-12-23 07:15:54 |
| 3111 | 2005-06-20 17:46:47.000 | 4494 4494 | 579 579 | 2005-06-29 19:45:47.000 | 1 1 | 2020-12-23 07:16:02 |
| 4619 | 2005-07-08 08:01:09.000 | 2127 2127 | 579 579 | 2005-07-16 05:52:09.000 | 2 2 | 2020-12-23 07:16:25 |
| 4933 | 2005-07-08 22:18:29.000 | 322 322 | 579 579 | 2005-07-13 03:47:29.000 | 2 2 | 2020-12-23 07:16:30 |
| 6304 | 2005-07-11 18:02:16.000 | 4183 4183 | 579 579 | 2005-07-14 14:01:16.000 | 1 1 | 2020-12-23 07:16:49 |
| 6814 | 2005-07-12 18:11:58.000 | 1863 1863 | 579 579 | 2005-07-18 20:37:58.000 | 2 2 | 2020-12-23 07:16:57 |
| 6824 | 2005-07-12 18:26:46.000 | 858 858 | 579 579 | 2005-07-21 15:23:46.000 | 1 1 | 2020-12-23 07:16:57 |
| 6969 | 2005-07-27 00:23:54.000 | 2650 2650 | 579 579 | 2005-08-03 04:34:54.000 | 1 1 | 2020-12-23 07:16:59 |
| 7221 | 2005-07-27 09:37:35.000 | 3820 3820 | 579 579 | 2005-07-28 11:25:35.000 | 1 1 | 2020-12-23 07:17:03 |
| 8354 | 2005-07-29 04:56:26.000 | 4476 4476 | 579 579 | 2005-08-01 08:04:26.000 | 2 2 | 2020-12-23 07:17:20 |
| 8876 | 2005-07-30 00:15:09.000 | 2394 2394 | 579 579 | 2005-08-02 23:56:09.000 | 1 1 | 2020-12-23 07:17:27 |
| 8996 | 2005-07-30 04:53:23.000 | 1970 1970 | 579 579 | 2005-07-31 06:01:23.000 | 1 1 | 2020-12-23 07:17:29 |
| 9349 | 2005-07-30 18:20:08.000 | 3739 3739 | 579 579 | 2005-08-08 22:06:08.000 | 1 1 | 2020-12-23 07:17:34 |
| 9553 | 2005-07-31 02:06:34.000 | 4187 4187 | 579 579 | 2005-08-08 02:20:34.000 | 1 1 | 2020-12-23 07:17:37 |
| 9976 | 2005-07-31 16:57:49.000 | 4219 4219 | 579 579 | 2005-08-03 16:33:49.000 | 2 2 | 2020-12-23 07:17:43 |
| 9997 | 2005-07-31 17:37:30.000 | 640 640 | 579 579 | 2005-08-02 14:49:30.000 | 1 1 | 2020-12-23 07:17:44 |
| 11494 | 2005-08-02 22:51:23.000 | 3994 3994 | 579 579 | 2005-08-09 01:52:23.000 | 1 1 | 2020-12-23 07:18:05 |
| 12051 | 2005-08-17 20:56:15.000 | 4001 4001 | 579 579 | 2005-08-25 19:08:15.000 | 1 1 | 2020-12-23 07:18:12 |
| 12315 | 2005-08-18 06:15:06.000 | 2012 2012 | 579 579 | 2005-08-24 07:45:06.000 | 2 2 | 2020-12-23 07:18:15 |
| 14047 | 2005-08-20 22:00:43.000 | 186 186 | 579 579 | 2005-08-24 03:17:43.000 | 2 2 | 2020-12-23 07:18:41 |
| 14185 | 2005-08-21 03:28:37.000 | 3957 3957 | 579 579 | 2005-08-26 01:15:37.000 | 1 1 | 2020-12-23 07:18:43 |
| 14543 | 2005-08-21 15:39:01.000 | 709 709 | 579 579 | 2005-08-28 09:47:01.000 | 1 1 | 2020-12-23 07:18:48 |
| 14560 | 2005-08-21 16:13:47.000 | 1616 1616 | 579 579 | 2005-08-26 15:19:47.000 | 1 1 | 2020-12-23 07:18:49 |
| 15601 | 2005-08-23 06:33:26.000 | 3643 3643 | 579 579 | 2005-08-24 04:10:26.000 | 1 1 | 2020-12-23 07:19:03 |
| 15794 | 2006-02-14 15:16:03.000 | 3917 3917 | 579 579 | 2 2 | 2020-12-23 07:19:06 | |
| 15838 | 2005-08-23 15:30:48.000 | 2194 2194 | 579 579 | 2005-08-31 11:20:48.000 | 2 2 | 2020-12-23 07:19:07 |
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) ;