Pawan,
There is no guarantee that order by constant clause will return the rows always in same order. Although you can get correctly for small number of rows, you will not get it when there are many number of rows...
.
If the table don't have clustered index, rows will stored in random order and also if there is no order by clause in query, there is no guarantee for order of rows.
commented on May 2 2011 10:09AM