Hi all
i have a table as fallow in my mysql 5 database
Id | R | G | B
---------------
12 | 0 | 1 | 1
14 | 1 | 0 | 0
18 | 0 | 1 | 0
19 | 0 | 1 | 0
I want to get the column names that having value 1 where id = 12
the result should be 'G' and 'B'
So how can i write the query
Plz help soon
thanks
Nayana Adassuriya