i have 1 table for ex table1 and it have columns names: id, name, amount.
id name amount
1 abc 20
2 xyz 50
3 pqr 246
i want to sort it from max value to min. i have written this query:
SELECT * FROM table1 ORDER BY amount DESC;
but it gives output like this:
id name amount
2 xyz 50
3 pqr 246
1 abc 20
which is not valid output that i want, i want output like this:
id name amount
3 pqr 246
2 xyz 50
1 abc 20
so, if anyone know the solution of this problem please give me the solution.