Does anyone have any idea how to construct a select statement querying a temp table that contains the following data:
Code |Col1 | Col2| Col3
----------------------------------------
ABCD |AAASTRING|NULL | NULL
ABCD |NULL |BBBSTRING | NULL
ABCD |NULL |NULL | CCCSTRING
… that will merge the results as follows?
Code |Col1 | Col2 | Col3
---------------------------------------
ABCD |AAASTRING| BBBSTRING | CCCSTRING
Your help would be greatly appreciated!
Try this: