Hi,
I have 2 tables. One table contains one field called
"shortnames".Second table contains many columns including "shortnames". I
want to get all the shortnames from second table which are not present in
the first table.
I have a query like this:
"SELECT T1.shortname FROM TT_Reference_Tree AS T1 WHERE T1.shortname NOT
IN(select distinct shortname from table1);"
But the problem is that the execution time of this is very high. Means more
than one or 2 minutes. Is there any other fast method for the same.
Tomch
I have 2 tables. One table contains one field called
"shortnames".Second table contains many columns including "shortnames". I
want to get all the shortnames from second table which are not present in
the first table.
I have a query like this:
"SELECT T1.shortname FROM TT_Reference_Tree AS T1 WHERE T1.shortname NOT
IN(select distinct shortname from table1);"
But the problem is that the execution time of this is very high. Means more
than one or 2 minutes. Is there any other fast method for the same.
Tomch