Skip to content
Advertisement

Dynamically selection of Column Name

I want to select Column Name which has non null and non zero value. So any column name which has 0 or NULL should not be displayed in the output grid

I have the Source table as below

I want to group by Col1 and Display Col1, MIN(Col2), MIN(Col3), MIN(Col4) and ColRes as (Name of the column with value more than 0)

Expected Output as below:

Is it possible ?

Advertisement

Answer

Something like:

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement