Hi all, im new to informix and dont know how to create cursors in the dbaccess env. It seems that they only get running in a 4gl env.
Im tring to create a query that looks like this but dbaccess sends me and error with the first 1, and I think the cursors will handle the query.
SELECT distinct a.clich_nss, a.clide_sumsal
FROM dwhafore@desatcpdwh:tt_af_clivip as a,
dwhafore:te_af_notafore as b
WHERE a.clich_nss = b.notch_nss AND
b.notin_fecna > 19531101 into temp t101;
SELECT first 1 notch_regpat, notch_nss
FROM te_af_notafore
WHERE notch_nss in (
SELECT clich_nss as nss
FROM t101) into temp t102;
Thanks all.
Jim