how to sort records in sql?
Answers were Sorted based on User's Feedback
Answer / hannan oca
by using order by asc or order by des;
we can sort the data.
Is This Answer Correct ? | 16 Yes | 0 No |
For EMP table
order by deptno asc OR order by deptno desc
Normally records with NULL values are listed at last. We can
change this by using "NULLS FIRST" or "NULLS LAST" along
with order by clause.
Ex: order by deptno nulls first
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / slokh
SELECT * FROM table_name
ORDER BY column_name ASC;
Is This Answer Correct ? | 1 Yes | 0 No |
What are different types of refreshment techniques of materialised view
Is ms sql is free?
Can two tables have same primary key?
How to assign sql query results to pl sql variables?
Can we join 3 tables in sql?
What is hibernate and its relation to sql?
what is clause? : Sql dba
what is the difference between blob and text? : Sql dba
Why trigger is used in sql?
What is clustered and non-clustered indexes?
What is the difference between pl and sql?
Is pl sql a scripting language?