I have a table, TableA, that looks like this:
ColA ColB
0 20
1 10
0 5
1 15
I want to sort the rows so that all the records where ColA = 0 are listed first, and then these records are sorted by ColB ascendingly. After all the rows with ColA = 0 are listed, I then want to list all the rows with ColA = 1 but these rows sorted by ColB descendingly.
The results should look like this:
ColA ColB
0 5
0 20
1 15
1 10
Is this possible? Thanks for your help.
1 Answer