So, let's consider my table as:
col1 data1 col2 data2
0 apple 1 frog
1 orange 0 dino
1 pine 0 dog
0 guava 0 cat
My result query should consist of data1 and data2 in a way that col1=1, then it shows that data1 value, and same with col2=1, then shows data2.
Ideal output:
data1 data2
orange frog
pine NULL
Is that even possible?