Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

What are the differences between order by 1 and order by column name?

Asked by Hellen Cargill Dec 14, 2023 868 views 1 answer
Share

About this question

During my interview at a tech company I was asked about the function of “ORDER BY 1” in SQL and how it is different from “ORDER BY column name”. Provide me the answer and one illustration also. 

Your answer

1 Answer

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.