You are on page 1of 1

SELECT ROWID_OBJECT,

MAX(DECODE(TRIM(ROWID_SYSTEM),'EDb',PKEY_SRC_OBJECT)) AS EDB_CROSSREF,
MAX(DECODE(TRIM(ROWID_SYSTEM),'DMS',PKEY_SRC_OBJECT)) AS DMS_CROSSREF,
MAX(DECODE(TRIM(ROWID_SYSTEM),'ZST',PKEY_SRC_OBJECT)) AS ZST_CROSSREF
FROM C_PARTY_XREF
GROUP BY ROWID_OBJECT

/*15000 records that have matched to duns*/


select *from tmp_crossref where DNB_CROSSREF is not null
and EDB_CROSSREF is not null

/*10000 records that have not matched to duns*/


select *from tmp_crossref where DNB_CROSSREF is null