Link to home
Start Free TrialLog in
Avatar of Ashok
AshokFlag 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
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
... 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.
Avatar of Ashok

ASKER

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

Thank you all
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.
>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.
Apologies for just a link, was in middle of meeting on tablet, have to agree with jimhorn here