By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
9 rows affected
ID | AL | LVL | IDParent |
---|---|---|---|
AA | 07BB | 1 | null |
AB | 07BB | 1 | null |
BA | 07BB | 2 | AA |
BB | 07BB | 2 | AB |
BC | 07BB | 2 | AB |
CA | 07BB | 3 | BB |
CB | 07BB | 3 | BC |
CD | 07BB | 3 | BC |
CE | 07BB | 3 | AA |
5 rows affected
ID | LTotal |
---|---|
AA | 0 |
AB | 0 |
BA | null |
BB | null |
BC | null |
CA | null |
CB | null |
CD | null |
CE | 1 |
Warning: Null value is eliminated by an aggregate or other SET operation.