sql query for displaying age from oldest to youngest
snippet in sql

sql query for displaying age from oldest to youngest

user8771

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

//Youngest to oldest
SELECT * FROM table_name ORDER BY age ASC;