I have two integer columns in a table where the first column is populated with some random numbers and the second column is empty. Now is it possible to sort the first column in ascending order and at the same time sort it in descending order and display as the second column? I have the example of the table below.
Initial Table:
col1 col2
5
7
3
9
2
Output:
col1 col2
2 9
3 7
5 5
7 3
9 2
Try this: