Manas Biswal Intermediate
Joined: 29 Nov 2002 Posts: 382 Topics: 27 Location: Chennai, India
|
Posted: Tue Mar 07, 2006 9:44 am Post subject: |
|
|
pkrish_18,
In short, thats because DB2 optimizer decided that those were the two most efficient ways to retrieve the records for your queries (with and without the order by clause). How the optimizer decides that is a complex story, something that I also do not know everything about.
If you would like your query output to be ordered a certain way, sort on that column.
Regards,
Manas _________________ There is no path to peace. Peace is the path.
- Mahatma Gandhi (1869-1948) |
|