I have a table where status can be either GOLD, SILVER, ACTIVE or INACTIVE.
I would like to sort by that… in that order and take top X. How can I write that in my query?
Currently I am filling up a list by first querying for GOLD and then checking the size of the list, then querying for SILVER and again checking the size etc.
1 Answer