IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Loadin data from one to another of same schema


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Chanchal Majumder

New User


Joined: 09 Jul 2012
Posts: 10
Location: INDIA

PostPosted: Wed Jun 05, 2013 1:55 pm
Reply with quote

Hi ..I have loaded a table from region to same table of an another region .
But when i have loaded in a different region the internal sorting of the data is different.

Table 1 :
1 2
2 3
4 5

Table 1 :
2 3
4 5
1 2
So here Can any one please tell me Please ,in what basis db2 sort the data internally ?
So i can check for both the table and made them in sync .

Thanks & Regards,
Chanchal .
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Jun 05, 2013 2:00 pm
Reply with quote

You should remember that when doing a select without an ORDER BY clause
the order in which the rows are returned is unpredictable and generally NOT reproducible ( the same query might return rows in a different order )
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jun 05, 2013 7:11 pm
Reply with quote

Hello,

Quote:
So i can check for both the table and made them in sync .
Why do you believe they need to be "in Sync?

In a database the physical placement of data rows should not be an issue?

As Enrico mentioned, if you want things to be the same, use an ORDER BY.

If i've mis-understood, please clarify.
Back to top
View user's profile Send private message
Chanchal Majumder

New User


Joined: 09 Jul 2012
Posts: 10
Location: INDIA

PostPosted: Wed Jun 05, 2013 11:24 pm
Reply with quote

Yup ..I agree icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
Search our Forums:

Back to Top