I have 2 tables with same structure:
BIGTABLE ( WORD C(10) ) && 10,0000 RECORDS
SMALLTABLE ( WORD C(10) ) && 2 RECORDS
both are indexed on WORD.
SMALLTABLE has 2 recs:
"CAT"
"DOG"
BIGTABLE has numerous 'words' including those found in SMALLTABLE
the following in fully optmized:
SELECT WORD FROM BIGTABLE INTO CURSOR TEMP WHERE WORD IN ("CAT","DOG")
the folloinw is not optmized at all:
SELECT WORD FROM BIGTABLE INTO CURSOR TEMP WHERE WORD IN ( SELECT WORD
FROM SMALLTABLE )
Why is the 2nd example not optmized? And I'm am missing in the 2nd
example to make it optmized? I need to use SMALLTABLE in table form
rather than in sting form.
THANK YOU
Mike Farnesi