I'm am pulling from 2 databases which I've done before but not these 2 in particular. One is an Informix connection, the other is ISeries for AS400.
Here is the SQL with the record selection which works:
SELECT
fcs_evnt_ldgr.cs_id, fcs_evnt_ldgr.evnt_dt, fcb_evnt_srvc.evnt_srvc_cd, fcb_evnt_srvc.desc_evnt_cd, fcb_evnt_srvc.fee, fcs_cs_mstr.cs_num_txt, fcs_cs_mstr.alt_cs_ref_num_2
FROM
distprod@pecanifmxsoc1:informix.fcs_evnt_ldgr fcs_evnt_ldgr,
distprod@pecanifmxsoc1:informix.fcb_evnt_srvc fcb_evnt_srvc,
OUTER distprod@pecanifmxsoc1:informix.fcs_cs_mstr fcs_cs_mstr
WHERE
fcs_evnt_ldgr.evnt_srvc_cd = fcb_evnt_srvc.evnt_srvc_cd AND
fcs_evnt_ldgr.cs_id = fcs_cs_mstr.cs_id AND
fcs_evnt_ldgr.cs_id = 108941
ORDER BY
fcs_cs_mstr.alt_cs_ref_num_2 ASC,
fcs_cs_mstr.cs_num_txt ASC
********************************
Here is the SQL without the record selection that does not work:
SELECT
fcb_evnt_srvc.evnt_srvc_cd, fcb_evnt_srvc.desc_evnt_cd, fcb_evnt_srvc.fee, fcs_cs_mstr.cs_num_txt, fcs_cs_mstr.alt_cs_ref_num_2, fcs_evnt_ldgr.evnt_dt
FROM
distprod@pecanifmxsoc1:informix.fcb_evnt_srvc fcb_evnt_srvc,
distprod@pecanifmxsoc1:informix.fcb_evnt_srvc fcb_evnt_srvc,
OUTER distprod@pecanifmxsoc1:informix.fcs_cs_mstr fcs_cs_mstr
WHERE
fcs_evnt_ldgr.evnt_srvc_cd = fcb_evnt_srvc.evnt_srvc_cd AND
fcs_evnt_ldgr.cs_id = fcs_cs_mstr.cs_id
ORDER BY
fcs_cs_mstr.alt_cs_ref_num_2 ASC,
fcs_cs_mstr.cs_num_txt ASC
********************
HHMM, now that I have both SQL's side by side, there seems to be other differences. I'll print this and compare, but if you see something right away, please reply.
Thank you for your help