I want to add two column values of my table and sort them in descending order. For instance:
int_id int_test_one int_test_2
1 25 13
2 12 45
3 25 15
Given the table above, I want the SQL query to give me the result, as shown below:
int_id sum(int_test_one,int_test_two)
2 57
3 40
1 38
Is there any sql query for this?
source
share