By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
ID | ItemNum | ID | ItemNum | LeadTime | rn |
---|---|---|---|---|---|
1 | 1 | 1 | 1 | 6 | 1 |
2 | 2 | 2 | 2 | 7 | 1 |
3 | 3 | 4 | 3 | 6 | 1 |
4 | 4 | 5 | 4 | 3 | 1 |
5 | 5 | null | null | null | null |
ID | ItemNum | ID | ItemNum | LeadTime | rn |
---|---|---|---|---|---|
1 | 1 | 1 | 1 | 6 | 1 |
2 | 2 | 2 | 2 | 7 | 1 |
3 | 3 | 4 | 3 | 6 | 1 |
4 | 4 | 5 | 4 | 3 | 1 |
5 | 5 | null | null | null | null |