Folks:
I have a string which looks like:
SELECT DISTINCT QUOTE_NO FROM QUOTE_NEW,CONTACT,GENERAL WHERE QUOTE_PRIMARY=CONT_ID AND QUOTE_PRODUCT_TYPE='ACT' AND PROCESS_TYPE IN(n1,n2,n3,n4)
** the n's are integers
The string works as desired if n1 through n4 does not exist in the GENERAL table.
My problem is that if any of n1 through n4 exists in a single record, the entire table is returned, instead of that particular records that have n1,n2,n3,n4, etc.
Any suggestions?
Thanks,
Steve
I have a string which looks like:
SELECT DISTINCT QUOTE_NO FROM QUOTE_NEW,CONTACT,GENERAL WHERE QUOTE_PRIMARY=CONT_ID AND QUOTE_PRODUCT_TYPE='ACT' AND PROCESS_TYPE IN(n1,n2,n3,n4)
** the n's are integers
The string works as desired if n1 through n4 does not exist in the GENERAL table.
My problem is that if any of n1 through n4 exists in a single record, the entire table is returned, instead of that particular records that have n1,n2,n3,n4, etc.
Any suggestions?
Thanks,
Steve