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: 10308
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 Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am
No new posts Extract Data till prev hour balaji81_k DB2 16 Fri Aug 25, 2017 9:25 pm
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm

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