Search
 
SCRIPT & CODE EXAMPLE
 

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;
Comment

PREVIOUS NEXT
Code Example
Sql :: inspecting a column unique/distinct values in SQL 
Sql :: Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , , = or when the subquery is used as an expression. 
Sql :: postgres execute multiple sql file from command line 
Sql :: mysql foreign key 
Sql :: SQL SMALLDATETIME Data Type 
Sql :: group by 
Sql :: sql select without column name 
Sql :: mysql trigger to delete old data 
Sql :: not in in mongodb 
Sql :: mysql null 
Sql :: sql remove duplicates based on column 
Sql :: how to add amount between date in sql 
Sql :: import database from sql file 
Sql :: insert to first table if field A equals field B from a second table using sql 
Sql :: insert sql 
Sql :: oracle multiple insert 
Sql :: Example SQL Test 
Sql :: sql basic commands 
Sql :: in sqlalchemy 
Sql :: iterative instruction sql 
Sql :: use mysql in java program 
Sql :: ORACLE multiset union distinct 
Sql :: 5000/208 
Sql :: execute oracle ash command 
Sql :: Windows internal database connection 
Sql :: sql after date 
Sql :: oracle sql developer script output limit 
Sql :: horizontal join sqlite 
Sql :: automated psql csv export script on windows 
Sql :: how to input data as id in database sql c# 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =