By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
unique_id | uid |
---|---|
123487 | 1000 |
123488 | null |
123489 | null |
123490 | null |
max(uid) |
---|
1000 |
rn |
---|
1 |
2 |
3 |
unique_id | uid |
---|---|
123487 | 1000 |
123488 | 1001 |
123489 | 1002 |
123490 | 1003 |