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 the different operators available in sql?
Is natural join same as inner join?
scope of exception handling in plsql
Give which cursor is better for better performance means type of cursors?
is it mandatory to select all the column in a view then what columns should be selected
What is exit statement?
How many types of privileges are available in sql?
How does stored procedure reduce network traffic?
What is string data type in sql?
how to get enames with comma seperated values by deptwise on emp table?
explain the difference between myisam static and myisam dynamic. : Sql dba
What does desc stand for?