Thank you for responding, John and Gary... I only posted here because the error window always takes me to this forum to read other people's issues. Sometimes I find something that resolves my issue, but more often it is just not what I'm looking for. So, I appreciate you taking the time.
This is the original query:
SELECT PDBC_PFX,
BSDL_TYPE,
BSDE_DESC,
BSDL_NTWK_IND,
BSDL_EFF_DT,
BSDL_COPAY_AMT,
BSDL_DEDE_AMT,
BSDL_COIN_PCT,
BSDL_LTLT_AMT,
BSDL_LT_TYPE,
BSDL_LT_PERIOD,
BSDL_COV_IND,
BSDL_STOPLOSS_AMT,
BSDL_STOPLOSS_TYPE,
BSDL_USER_LABEL1,
BSDL_USER_DATA1,
BSDE_REC_TYPE
FROM FACETSDB.CMC_BSDL_DETAILS
INNER JOIN FACETSDB.CMC_BSDE_DESC ON (BSDL_TYPE = BSDE_TYPE)
WHERE (BSDE_REC_TYPE = 'BSDL')
AND cmc_bsdl_details.pdbc_pfx BETWEEN 'XXXXXX' AND 'XXXXXX'
AND cmc_bsdl_details.bsdl_type BETWEEN '1001' AND '1017'
OR (BSDE_REC_TYPE = 'BSDL')
AND cmc_bsdl_details.pdbc_pfx BETWEEN 'XXXXXX' AND 'XXXXXX'
OR cmc_bsdl_details.pdbc_pfx IN ('XXXXXX','XXXXXX','XXXXXX','XXXXXX','XXXXXX')
--AND cmc_bsdl_details.bsdl_type BETWEEN '1001' AND '1017'
--AND cmc_bsdl_details.bsdl_type IN '%1007%' and '%1017%'
ORDER BY cmc_bsdl_details.pdbc_pfx ASC, cmc_bsdl_details.bsdl_type ASC
Below is the new Inner Join formatting that I cannot get to function.
FROM FACETSDB.CMC_BSDE_DESC
INNER JOIN FACETSDB.CMC_BSBS_SUM ON (BSDE_DESC = BSBS_DESC)
INNER JOIN FACETSDB.CMC_BSDL_DETAILS
ON (CMC_BSBS_SUM.PDBC_PFX = CMC_BSDL_DETAILS.PDBC_PFX)
The error for this format is 00918.
As for the error, the window shows Line 2, Column 8. If you need more detail, you may have to tell me what to do to get it.