I have a doctors table where i have many columns, like id, name, email, etc. and two of them is is_featured and is_top.
These both column type is ENUM having value either 'y' or 'n'.
I want to get the doctors first having is_features='y' and then those doctors having is_top='y' and last is_featured='n' and is_top='n'
so basically i want the order of the doctors like these:
is_featured='y'is_top='y'is_featured='n'is_top='n'
Can any one help how can i achieve this?
I am totally unaware about how to syntax these type of sql query?