Avatar of Ashok
Ashok
Flag for United States of America asked on

What does "order by 1" mean in MS SQL Server 2000?

What does "order by 1" mean in MS SQL Server 2000?

I saw this being used when calculating Median.

Thanks,
Ashok
Microsoft SQL ServerMicrosoft SQL Server 2008Microsoft SQL Server 2005

Avatar of undefined
Last Comment
James Murrell

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Jim Horn

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
James Murrell

SOLUTION
Cluskitt

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Cluskitt

I don't agree with the points awarded. I believe that jimhorn should get the correct solution (being the first to answer the posted question correctly) and you might award an assisted solution to Qlemo. You shouldn't award more points to an assisted solution than to an accepted solution anyway.
Jim Horn

... and the first response didn't answer your question, how exactly?  ...

Granted this was a softball question, and multiple experts were able to answer this quickly, and qlemo was the first to provide background reasons one should use ORDER BY x, but the bulk of the points that were awarded seems arbitrary.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Ashok

ASKER
fansql answer is complete.   Qlemo answer provided 3 reasons where "Order by column #" is used.

Thank you all
Cluskitt

Given your question, jimhorn's answer is complete. fansql's is more extensive, answering outside the parameters of the question. Qlemo's is the most extensive. At the very least, jimhorn should have an assisted answer, though the correct would be awarding the correct answer to jimhorn and assisted to fansql and Qlemo.
Jim Horn

>fansql answer is complete.  
That is correct, however the three answers previous to it are also complete, even if one was just a link, and it is a breach of etiquette to award most/all points without addressing earlier correct answers.

The extra information provided, while being helpful and deserving of split points, does not warrant ignoring previous correct answers.

I have reqested attention to the awarding of points in this question.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
James Murrell

Apologies for just a link, was in middle of meeting on tablet, have to agree with jimhorn here