|
|
|
|
|
|
|
Re: without orderby clause [message #360880 is a reply to message #360856] |
Mon, 24 November 2008 04:22  |
JRowbottom
Messages: 5933 Registered: June 2006 Location: Sunny North Yorkshire, ho...
|
Senior Member |
|
|
Without an Order by clause, there is no guarantee that the results will be returned in a consistent order.
They almost certainly will keep coming back in the same order, but if anything happens to the underlying tables - insert rows, delete rows, update rows, rebuild , etc etc then the order of the rows may change.
As a general rule, you shouldn't put Order By clauses in views - you have no idea what the view will get used for, and the time spend ordering the rows will be wasted if the query looking at the view doesn't care about the order, or imposes it's own order on the data.
|
|
|