Having this table:
| warehouse_id | destination_id | days |
|---|---|---|
| 1 | 1 | 2 |
| 1 | 1 | 3 |
| 2 | 1 | 3 |
| 2 | 1 | 4 |
| 3 | 1 | 5 |
| 3 | 2 | 5 |
| 1 | 2 | 2 |
| 2 | 2 | 3 |
I'd like to get the warehouse_id and days for each value of warehouse_id, where the row has the minimum value of days, and destination_id matches a specific value, ordered by days.
For example for destination_id = 1
| warehouse_id | days |
|---|---|
| 1 | 2 |
| 2 | 3 |
| 3 | 5 |