By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
id | rnd |
---|---|
1 | 2 |
2 | 2 |
3 | 3 |
4 | 3 |
5 | 1 |
6 | 2 |
7 | 1 |
8 | 1 |
9 | 3 |
10 | 3 |
id | originalid | num |
---|---|---|
1 | 1 | 2 |
2 | 3 | 3 |
3 | 4 | 3 |
4 | 6 | 2 |
5 | 7 | 1 |
6 | 6 | 2 |
7 | 8 | 1 |
8 | 8 | 1 |
9 | 9 | 3 |