I'm working on simple queries but can't figure out how to modify to produce the below output.
Number Name Flag
1 ABC NULL
1 DEF FG
1 DEF NULL
I need to produce this output:
Number Name Flag
1 ABC NULL
1 DEF FG
The logic is when Number and Name are same, take the rows with the Flag.
1 DEF GH?