By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| class | branch | status |
|---|---|---|
| 1 | Branch_A | INCLUDE |
| 1 | Branch_B | NOT INCLUDE |
| 1 | Branch_C | NOT INCLUDE |
| 2 | Branch_D | INCLUDE |
| 2 | Branch_E | INCLUDE |
| 2 | Branch_A | INCLUDE |
| 2 | Branch_B | INCLUDE |
| 2 | Branch_C | NOT INCLUDE |
| class | INCLUDE | NOT INCLUDE |
|---|---|---|
| 1 | 1 | 2 |
| 2 | 4 | 1 |
Warning: Null value is eliminated by an aggregate or other SET operation.
| class | INCLUDE | NOT INCLUDE |
|---|---|---|
| 1 | 1 | 2 |
| 2 | 4 | 1 |