I have my roles table (which to me was poorly planned) which consists of 4 fields: role_name, type1, type2, type3.
Each typeX either has a Y for yes or N for no.
Sample data:
Hero, Y, N, N
Human, N, Y, N
Dog, Y, N, N
I’d like my output to be:
Hero Type1
Human Type2
Dog Type1
Help? Please!
You need to use the
IIFstatement for this, and in your case you must nest them.Something like: