By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
version() |
---|
8.0.18 |
id | state | municipally | rating |
---|---|---|---|
1 | AG | AG1 | 5 |
2 | AG | AG2 | 6 |
3 | AG | AG3 | 2 |
4 | AG | AG4 | 1 |
5 | AG | OTHER | - |
6 | AB | AB1 | 0.2 |
7 | AB | AB2 | 2 |
8 | AB | AB3 | 10 |
9 | AB | OTHER | - |
state | MAXrating |
---|---|
AG | 6 |
AB | 10 |
id | state | municipally | rating |
---|---|---|---|
1 | AG | AG1 | 5 |
2 | AG | AG2 | 6 |
3 | AG | AG3 | 2 |
4 | AG | AG4 | 1 |
5 | AG | OTHER | 6 |
6 | AB | AB1 | 0.2 |
7 | AB | AB2 | 2 |
8 | AB | AB3 | 10 |
9 | AB | OTHER | 10 |