Joining DS_JOBS and DS_JOBOBJECTS does not yield correct set
Posted: Sat Jul 08, 2017 1:40 am
am trying to join DS_JOBS and DS_JobOBJECTS table on JOBNO and OBJID respectively. One of my environment is not yielding the correct number of jobs that it ideally should and the reason is the JOBNO and OBJID are not having the same values.
In Dev I am getting 2500 jobs but in Test I am only getting some handful of them. My question is, Is this expected behavior that For one job I can expect different OBJID and JOBNO in the 2 tables?
My expectation was we get all the jobs of projects since Pk-fK relationship is maintained between the 2 tables.
Select OBJID,JOBNO,...... from DS_JOBS,DS_JOBOBJECTS where DS_JOBS.JOBNO = DS_JOBOBJECTS --> Yields different results in different environments with same jobs
More Specifically: select NAME,DS_JOBOBJECTS.OLETYPE,DS_JOBOBJECTS.OBJIDNO, EVAL DS_JOBOBJECTS."@RECORD<3,1>" from DS_JOBOBJECTS where OLETYPE='CJobDefn'; -- Yields just 250 jobs out of 2500
In Dev I am getting 2500 jobs but in Test I am only getting some handful of them. My question is, Is this expected behavior that For one job I can expect different OBJID and JOBNO in the 2 tables?
My expectation was we get all the jobs of projects since Pk-fK relationship is maintained between the 2 tables.
Select OBJID,JOBNO,...... from DS_JOBS,DS_JOBOBJECTS where DS_JOBS.JOBNO = DS_JOBOBJECTS --> Yields different results in different environments with same jobs
More Specifically: select NAME,DS_JOBOBJECTS.OLETYPE,DS_JOBOBJECTS.OBJIDNO, EVAL DS_JOBOBJECTS."@RECORD<3,1>" from DS_JOBOBJECTS where OLETYPE='CJobDefn'; -- Yields just 250 jobs out of 2500