Guest_imported
New member
- Jan 1, 1970
- 0
I am trying to build a report from a SQL statement. Here is the Statement:
SELECT DONA_IDNO, I_LAST_NAME, I_FIRST_NAME
FROM DONATIONS, INDV
WHERE DONA_IDNO = I_NUMBER
AND DONA_CODE =ANY('P25','P100','P500','P1K')
AND DONA_DATE >= '01-SEP-00'
MINUS
SELECT DONA_IDNO, I_LAST_NAME, I_FIRST_NAME
FROM DONATIONS, INDV
WHERE DONA_IDNO = I_NUMBER
AND DONA_CODE =ANY('P25','P100','P500','P1K')
AND DONA_DATE < '01-SEP-00'
/
The problem is with the key-word MINUS (Not Including). I want to get the first select statement minus the records included in the second select statement. How can this be done within crystal?
SELECT DONA_IDNO, I_LAST_NAME, I_FIRST_NAME
FROM DONATIONS, INDV
WHERE DONA_IDNO = I_NUMBER
AND DONA_CODE =ANY('P25','P100','P500','P1K')
AND DONA_DATE >= '01-SEP-00'
MINUS
SELECT DONA_IDNO, I_LAST_NAME, I_FIRST_NAME
FROM DONATIONS, INDV
WHERE DONA_IDNO = I_NUMBER
AND DONA_CODE =ANY('P25','P100','P500','P1K')
AND DONA_DATE < '01-SEP-00'
/
The problem is with the key-word MINUS (Not Including). I want to get the first select statement minus the records included in the second select statement. How can this be done within crystal?