I am creating an SQL SELECT from a number of tables but the final criteria will be whether the 'last' table has a field of a certain name eg 'FLAG9'.
I have used AND exist(c.myflagfield); as a dummy entry.
Anybody help here?
ERIC
Code:
SELECT DISTINCT ref_id,srnamedisp,perno,a.dsid,nprime,G_toneplnu,;
G_Efoot,g_recno,b.primary as e_primary;
FROM;
TEMP_1 as a,TEMP_EE as b,TEMP_LL as c;
WHERE g_recno = b.gnum;
AND b.primary;
AND exist(c.myflagfield);
AND g_etype = tag1num;
INTO TABLE aMynamelist2
I have used AND exist(c.myflagfield); as a dummy entry.
Anybody help here?
ERIC