Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql query for displaying age from oldest to youngest

//Oldest to youngest
SELECT * FROM table_name ORDER BY age DESC;

//Youngest to oldest
SELECT * FROM table_name ORDER BY age ASC;
 
PREVIOUS NEXT
Tagged: #sql #query #displaying #age #oldest #youngest
ADD COMMENT
Topic
Name
3+1 =