Is it possible to select all non-null values from a table row and update another table row with them? For example, the table before the statement is run:
Id Val1 Val2 Val3
1 3 4 1
2 NULL NULL 5
And after:
Id Val1 Val2 Val3
1 3 4 5
2 NULL NULL 5
The number of columns containing null is unknown. Any help would be appreciated.
Id Val1 Val2 Val3
1 3 4 1
2 NULL NULL 5
And after:
Id Val1 Val2 Val3
1 3 4 5
2 NULL NULL 5
The number of columns containing null is unknown. Any help would be appreciated.