rental
23 rows where customer_id = 415
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 |
|---|---|---|---|---|---|---|
| 665 | 2005-05-28 21:38:39.000 | 1012 1012 | 415 415 | 2005-05-29 21:37:39.000 | 1 1 | 2020-12-23 07:15:28 |
| 1867 | 2005-06-17 02:01:37.000 | 3537 3537 | 415 415 | 2005-06-25 04:52:37.000 | 2 2 | 2020-12-23 07:15:45 |
| 3211 | 2005-06-21 01:01:29.000 | 1150 1150 | 415 415 | 2005-06-23 04:05:29.000 | 1 1 | 2020-12-23 07:16:04 |
| 4926 | 2005-07-08 22:01:48.000 | 4155 4155 | 415 415 | 2005-07-18 03:27:48.000 | 1 1 | 2020-12-23 07:16:30 |
| 5665 | 2005-07-10 08:10:08.000 | 1175 1175 | 415 415 | 2005-07-11 05:22:08.000 | 2 2 | 2020-12-23 07:16:40 |
| 5733 | 2005-07-10 11:37:24.000 | 3806 3806 | 415 415 | 2005-07-11 12:34:24.000 | 2 2 | 2020-12-23 07:16:41 |
| 6491 | 2005-07-12 02:28:31.000 | 2803 2803 | 415 415 | 2005-07-21 00:38:31.000 | 1 1 | 2020-12-23 07:16:52 |
| 6505 | 2005-07-12 03:27:37.000 | 3986 3986 | 415 415 | 2005-07-17 22:42:37.000 | 2 2 | 2020-12-23 07:16:52 |
| 7379 | 2005-07-27 15:36:43.000 | 424 424 | 415 415 | 2005-07-30 16:37:43.000 | 2 2 | 2020-12-23 07:17:05 |
| 7624 | 2005-07-28 00:37:44.000 | 2756 2756 | 415 415 | 2005-07-30 21:26:44.000 | 1 1 | 2020-12-23 07:17:09 |
| 7748 | 2005-07-28 05:52:23.000 | 3523 3523 | 415 415 | 2005-07-31 01:35:23.000 | 2 2 | 2020-12-23 07:17:11 |
| 8317 | 2005-07-29 03:39:07.000 | 3898 3898 | 415 415 | 2005-08-03 00:14:07.000 | 1 1 | 2020-12-23 07:17:19 |
| 9586 | 2005-07-31 03:07:16.000 | 3987 3987 | 415 415 | 2005-08-04 00:39:16.000 | 1 1 | 2020-12-23 07:17:38 |
| 9852 | 2005-07-31 12:52:17.000 | 4257 4257 | 415 415 | 2005-08-05 07:59:17.000 | 2 2 | 2020-12-23 07:17:42 |
| 10263 | 2005-08-01 03:02:48.000 | 2420 2420 | 415 415 | 2005-08-08 02:16:48.000 | 2 2 | 2020-12-23 07:17:47 |
| 10553 | 2005-08-01 12:54:06.000 | 2768 2768 | 415 415 | 2005-08-06 15:27:06.000 | 1 1 | 2020-12-23 07:17:52 |
| 11310 | 2005-08-02 15:51:58.000 | 3601 3601 | 415 415 | 2005-08-07 12:34:58.000 | 1 1 | 2020-12-23 07:18:02 |
| 12128 | 2005-08-17 23:31:09.000 | 2252 2252 | 415 415 | 2005-08-24 05:07:09.000 | 2 2 | 2020-12-23 07:18:13 |
| 12588 | 2005-08-18 16:04:45.000 | 694 694 | 415 415 | 2005-08-23 20:30:45.000 | 1 1 | 2020-12-23 07:18:19 |
| 13729 | 2005-08-20 10:17:08.000 | 4108 4108 | 415 415 | 2005-08-28 15:35:08.000 | 1 1 | 2020-12-23 07:18:36 |
| 14992 | 2005-08-22 07:51:47.000 | 4430 4430 | 415 415 | 2005-08-25 08:17:47.000 | 2 2 | 2020-12-23 07:18:55 |
| 15121 | 2005-08-22 12:46:37.000 | 2981 2981 | 415 415 | 2005-08-25 17:42:37.000 | 1 1 | 2020-12-23 07:18:57 |
| 15959 | 2005-08-23 19:27:04.000 | 547 547 | 415 415 | 2005-08-24 15:24:04.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) ;