What is the Sql syntax for sorting, and which is the default order?

 Posted by vishalneeraj-24503 on 8/5/2014 | Category: Sql Server Interview questions | Views: 1747 | Points: 40
Answer:

The default Sorting Order is Ascending.Below Two statements are identical:-
select * from table order by id;

select * from table order by id asc;

For descending order,simply replace asc with desc.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response