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 is error ora-12154: tns:could not resolve the connect identifier specified?
Can we edit a view in sql?
What is difference between cursor and trigger?
What SQL keyword must immediately follow the UNION ALL statement? 1. SELECT 2. INTO 3. ORDER 4. WHERE 5. JOIN
What is intersect?
I have a table .in the table 100 recored is there .we have get the single row with out using clause..
What are the two types of exceptions in pl/sql?
What is data control language?
How many subqueries can be nested in a statement?
Interchange the value of a column Gender in a table where values are Male and Female. So, where the value is Male, it should changed to Female and Female to Male.
What is sql rowcount?
Why do you partition data?