S
Smartin
My Query:
UPDATE HISTORY_TABLE SET ROLLOFF_DATE = DATE()
WHERE SOURCE_SYSTEM = 'TAS' AND
HISTORY_TABLE.REC_ID NOT IN (SELECT REC_ID FROM ODCOH_TAS);
When I run just the subquery portion, it returns records instantly.
When I try to run the query above it takes forever (I have killed it
after 30 minutes several times in a row).
For what it's worth, the subquery does a select on a ODBC Oracle table,
and HISTORY_TABLE is local in the MDB. Both HISTORY_TABLE and the
subquery have only a dozen records or so.
Any ideas why this thing takes so long?
UPDATE HISTORY_TABLE SET ROLLOFF_DATE = DATE()
WHERE SOURCE_SYSTEM = 'TAS' AND
HISTORY_TABLE.REC_ID NOT IN (SELECT REC_ID FROM ODCOH_TAS);
When I run just the subquery portion, it returns records instantly.
When I try to run the query above it takes forever (I have killed it
after 30 minutes several times in a row).
For what it's worth, the subquery does a select on a ODBC Oracle table,
and HISTORY_TABLE is local in the MDB. Both HISTORY_TABLE and the
subquery have only a dozen records or so.
Any ideas why this thing takes so long?