Logo 
Search:

SQL FAQ

Submit Interview FAQ
Home » Interview FAQ » SQLRSS Feeds

Can you use ORDER BY on a column that is not one of the columns in the SELECT statement?

  Shared By: Shruti Sharma    Date: Dec 21    Category: SQL    Views: 1283

Answer:

Yes, it is not necessary to use the SELECT statement on a column that you put in the ORDER BY clause.

Share: 
 



Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: