I would like to ask if i can achieve a query with one "order by" without using union:
first_order = column1 != column2;
seconder_order = column1 = column2;
third_order = column is null;
ex. select * from table_A order by first_order , seconder_order , third_order
But when i try this its not working.
What im trying to do is to display on my table with this list first_order then second_order and last the third_order. Im no expert on sql. Hope you can help me on this.. Thanks in advance!