multiple |
column1 | column2 | column3 | column4 | key1 | key2 |
0000758206 | [null] | Y | [null] | 11111 | 22222 |
0000758206 | N | [null] | [null] | 11111 | 22222 |
merged |
column1 | column2 | column3 | column4 | key1 | key2 |
0000758206 | N | Y | [null] | 11111 | 22222 |
Hello all,
I have a query generate multiple rows by the columns key1 and key2. Is there a way to merge the multiple row into one? basically all the nulls should be replaced by non-nulls. If multiple rows contain nulls for the same row (like column4), then keep the null.
Please shed some lights on this, I have little clue how to go about this.
thanks