Hi everybody and first of all sorry my bad english
The customer i work for has just migrated from DB2 MVS to DB2/AIX64 8.2.2 (same version) and we noticed that while select on MVS without explicit "order by" clause were sorted according the primary key, now in AIX the select are sorted in random way. Not only, every time we refresh the select the sort order is always different.
We noticed also that the problem is not limited where there's "order by" absence but also where the sorting is not explicited for all the fields of the table.
Ex.
MyTable has 4 fields :A, B,C and D
If i run following statement: select * from Mytable order by A,B
Every time i refresh the select we have random sorting on the other 2 fields not included into the order by.
At the moment the only way i have to avoid this is to explicit the "order by" clause for all the fields.
There's a way (db side) to force to change this unpredicatable way of sorting avoiding rewriting every sql statements?
Anyone can help me?
Thanx in advance
Simon