Aryan PrajapatKnowledge Contributor
What is the default data ordering with the ORDER BY statement, and how do you change it?
What is the default data ordering with the ORDER BY statement, and how do you change it?
By default, the order is ascending. To change it to descending, we need to add the DESC keyword as follows:
SELECT * FROM table_name
ORDER BY col_1 DESC;