Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Loadin data from one to another of same schema

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Loadin data from one to another of same schema
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10254
Location: italy

PostPosted: Wed Jun 05, 2013 2:00 pm    Post subject: Reply to: Loadin data from one to another of same schema
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

Site Director


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

PostPosted: Wed Jun 05, 2013 7:11 pm    Post subject:
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    Post subject: Reply to: Loadin data from one to another of same schema
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us