Each of the numbers in the column [New PART] is linked to the column [OLD PART]. The [New Part] column may have multiple rows of the same number in the same column but is it due to the association to the [OLISTd part] column, which are out dated numbers. Both the [OLISTd part] and the [new part] columns need to have the identical information in the [79to5000NewNumberToBeHandOff].
So as long as the info in the [79to5000NewNumberToBeHandOff] . Application] is the same then number in the [OLISTd part] and the [new part] is a usable numbers. What I need to do is compare the numbers in the [OLISTd part] and the [new part] to the {application} if the {application} has multiple different listing then the number that is repeated in either the [OLISTd part] or the [new part] column is a bad number and I can't us it. So how can I have the SQL statement that looks at the number in the [OLISTd part] and the [new part] columns then look at the
SELECT [79to5000NewNumberToBeHandOff].PhantomNo, [79to5000NewNumberToBeHandOff].NewNoVorNot, [79to5000NewNumberToBeHandOff].OEtoPhantom, [79to5000NewNumberToBeHandOff].Application, [79to5000NewNumberToBeHandOff].YrAppl, ChyLastestCalbration10_10_09.[OLD PART] as 'CLC OldPN', ChyLastestCalbration10_10_09.[NEW PART]as 'CLC NewPN', [79to5000NewNumberToBeHandOff].Application, [IN0140 79 wOE].PN as 'NPSpn', [IN0140 79 wOE].OENo as 'NPSoeNo' FROM (79to5000NewNumberToBeHandOff INNER JOIN ChyLastestCalbration10_10_09 ON [79to5000NewNumberToBeHandOff].OEtoPhantom = ChyLastestCalbration10_10_09.[NEW PART]) LEFT JOIN [IN0140 79 wOE] ON ChyLastestCalbration10_10_09.[OLD PART] = [IN0140 79 wOE].ComprsOE;
Software/Hardware used:
MS Access, AS400, MS Office 2000.
ASKED:
October 13, 2009 2:16 PM
UPDATED:
October 13, 2009 5:29 PM