oldest to newest employee sql code example
Example: 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;
//Oldest to youngest
SELECT * FROM table_name ORDER BY age DESC;
//Youngest to oldest
SELECT * FROM table_name ORDER BY age ASC;