﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by G Vijayakumar / Article Discussions / Article Discussions by Author  / When To Use the Order By Clause - (whenever ordering is required) / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 19:18:28 GMT</lastBuildDate><ttl>20</ttl><item><title>When To Use the Order By Clause - (whenever ordering is required)</title><link>http://www.sqlservercentral.com/Forums/Topic125084-172-1.aspx</link><description>&lt;P&gt;The conclusions of the article* may be a bit misleading: &lt;/P&gt;&lt;P&gt;1 "We do not require an "order by" clause in a table, which has got a clustered index." 2 "We do not require an "order by" clause for a non-index column in a select statement and both index and non-index column in a select statement." &lt;HR width=100&gt;&lt;/P&gt;&lt;P&gt;The Order By clause itself is indeed optional, and more often than not 1 &amp;amp; 2 may indeed be observed in practice, However: Ordered results are only guaranteed if an order by is included. That is 1 &amp;amp; 2 are reproducible in the scope of the given examples and in many but not necessarily all situations. In other words the behavior represents an implementation artifact rather than a design property and should be kept in mind if considering omitting Order By in any non-trivial application that actually requires specific ordering). {IOW do so at your own risk.}  HTH&lt;/P&gt;&lt;P&gt;*&lt;A href="http://www.sqlservercentral.com/columnists/gvijayakumar/whentousetheorderbyclause.asp"&gt;http://www.sqlservercentral.com/columnists/gvijayakumar/whentousetheorderbyclause.asp&lt;/A&gt;&lt;/P&gt;</description><pubDate>Wed, 07 Jul 2004 06:25:00 GMT</pubDate><dc:creator>Sql DBA</dc:creator></item></channel></rss>