What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 2527 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > SQL Server Interview Questions > Which is default sorting option in SQL ...

Which is default sorting option in SQL ORDER BY clause?

Interview question and answer by: CGN007 | Posted on: 6/14/2012 | Category: SQL Server Interview questions | Views: 1252 | | Points: 40

Select from following answers:
  1. ASC
  2. DESC
  3. There is no default value.

Show Correct Answer

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


 Responses

Posted by: Gemamgall | Posted on: 27 Jun 2012 10:23:02 AM | Points: 10 | Alert Moderator 

Default sorting order is ASC and in order to retrieve values in descending order we have to write order by clause

Posted by: Krishnamsai | Posted on: 20 May 2013 02:35:47 PM | Points: 10 | Alert Moderator 

ORDER BY Keyword sorts the records in Ascending order by default.
To sort the records in Descending order use the keyword DESC.

>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from CGN007

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/24/2013 6:46:53 AM