Consider i have a user
table and I have three columns mobilePhone
,homePhone
and workPhone
...
I have to select homePhone
for every user as first pref
if there is no value
I'll go for mobilePhone
and
if there is no value for it
I ll go for workPhone
....
Any suggestion how it can be done in mysql..