I have a report that uses two data sources - one from Notes and one from Oracle.
I want to retrieve all records from the Notes database and only those records from the oracle database that match.
Currently, by just linking I get all records where they both match.
The problem is, the Oracle side of it comprises of 3 tables linked together - and no matter what I try I cannot get it to return all Notes records.
The SQL behind the Oracel side of it is as follows:
SELECT
PCMS_CHDOC_DATA_a.CH_DOC_TYPE "TYPE",
PCMS_CHDOC_DATA_b.PDS_REF "PDS Proj",
PCMS_CHDOC_DATA_b.STATUS "CA STATUS",
PCMS_CHDOC_DATA_b.ACTION_DATE,
PCMS_CHDOC_DATA_a.CH_DOC_ID "TDR-ID",
PCMS_CHDOC_DATA_b.CH_DOC_ID "CA-ID"
FROM
PCMS_CHDOC_DATA PCMS_CHDOC_DATA_a,
PCMS_CHDOC_DATA PCMS_CHDOC_DATA_b,
PCMS_CHDOC_RELATED_CHDOC PCMS_CHDOC_RELATED_CHDOC
WHERE
PCMS_CHDOC_DATA_a.CH_UID = PCMS_CHDOC_RELATED_CHDOC.FROM_CH_UID AND
PCMS_CHDOC_RELATED_CHDOC.TO_CH_UID = PCMS_CHDOC_DATA_b.CH_UID AND
((PCMS_CHDOC_DATA_a.CH_DOC_TYPE='PDS')
AND (PCMS_CHDOC_DATA_b.TARGET_RELEASE='13.3.0'))
ORDER BY
PCMS_CHDOC_DATA_b.PDS_REF
with the Notes database (PDS) linking on PCMS_CHDOC_DATA_b.PDS_REF and PCMS.CHDOC_DATA_b.TARGET_RELEASE
to PDS.ProjectNo and PDS.StreamAddress respectively.
can any one suggest how I do this? I have tried playing with the joins, but cant get the results...
Matt
London (UK)
I want to retrieve all records from the Notes database and only those records from the oracle database that match.
Currently, by just linking I get all records where they both match.
The problem is, the Oracle side of it comprises of 3 tables linked together - and no matter what I try I cannot get it to return all Notes records.
The SQL behind the Oracel side of it is as follows:
SELECT
PCMS_CHDOC_DATA_a.CH_DOC_TYPE "TYPE",
PCMS_CHDOC_DATA_b.PDS_REF "PDS Proj",
PCMS_CHDOC_DATA_b.STATUS "CA STATUS",
PCMS_CHDOC_DATA_b.ACTION_DATE,
PCMS_CHDOC_DATA_a.CH_DOC_ID "TDR-ID",
PCMS_CHDOC_DATA_b.CH_DOC_ID "CA-ID"
FROM
PCMS_CHDOC_DATA PCMS_CHDOC_DATA_a,
PCMS_CHDOC_DATA PCMS_CHDOC_DATA_b,
PCMS_CHDOC_RELATED_CHDOC PCMS_CHDOC_RELATED_CHDOC
WHERE
PCMS_CHDOC_DATA_a.CH_UID = PCMS_CHDOC_RELATED_CHDOC.FROM_CH_UID AND
PCMS_CHDOC_RELATED_CHDOC.TO_CH_UID = PCMS_CHDOC_DATA_b.CH_UID AND
((PCMS_CHDOC_DATA_a.CH_DOC_TYPE='PDS')
AND (PCMS_CHDOC_DATA_b.TARGET_RELEASE='13.3.0'))
ORDER BY
PCMS_CHDOC_DATA_b.PDS_REF
with the Notes database (PDS) linking on PCMS_CHDOC_DATA_b.PDS_REF and PCMS.CHDOC_DATA_b.TARGET_RELEASE
to PDS.ProjectNo and PDS.StreamAddress respectively.
can any one suggest how I do this? I have tried playing with the joins, but cant get the results...
Matt
London (UK)