By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
INSERT 0 5
| order | status | eta |
|---|---|---|
| 1 | pending | 2025-01-20 |
| 5 | sailing | 2025-01-25 |
| 3 | ordered | 2025-01-28 |
| 4 | complete | 2025-01-16 |
| 2 | complete | 2025-01-15 |
SELECT 5
| order | status | eta |
|---|---|---|
| 1 | pending | 2025-01-20 |
| 5 | sailing | 2025-01-25 |
| 3 | ordered | 2025-01-28 |
| 4 | complete | 2025-01-16 |
| 2 | complete | 2025-01-15 |
SELECT 5
| order | status | eta |
|---|---|---|
| 1 | pending | 2025-01-20 |
| 5 | sailing | 2025-01-25 |
| 3 | ordered | 2025-01-28 |
| 4 | complete | 2025-01-16 |
| 2 | complete | 2025-01-15 |
SELECT 5