I have a table with a lot of columns, let's say I have columns
A, B, C, D
in each of these columns only one column will be filled in any one record, and the rest will always be NULL.
I need a select statement that will return a column of a nonzero column.
I tried to combine, but this returns the value, not the column to which the value belongs.
Does anyone know the easiest way to do this?
source
share