Answers for "how to sort sql query"

SQL
4

sort by sql

SELECT * FROM table_name ORDER BY col1 ASC;				-- ASCending is default
SELECT * FROM table_name ORDER BY col1 DESC;			-- DESCending
SELECT * FROM table_name ORDER BY col1 DESC, col2;	 	-- col1 DESC then col2 ASC
Posted by: Guest on May-09-2021
0

select sql order

SELECT naslov, stranice AS broj
FROM knjige
ORDER BY broj DESC
Posted by: Guest on June-08-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language