Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10457
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 3270 Data stream error Benchwarmer CICS 6 Tue Apr 17, 2018 12:06 am
No new posts How to list data set names with diffe... murali.andaluri CLIST & REXX 8 Thu Apr 12, 2018 11:33 pm
No new posts Invalid XML character while producing... nikhil.bhole IBM Tools 4 Tue Mar 20, 2018 1:24 am
No new posts Get the list of data sets on DASD and... rakaitn JCL & VSAM 3 Thu Mar 08, 2018 12:38 pm
No new posts Data security erase on RAID device steve-myers All Other Mainframe Topics 0 Sat Jan 13, 2018 6:41 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us