Hi,
I wrote this statment:
Select Code, Field1, Field2, [...] from MyTable
Where code in (select code from anothertable where code2 like '%Something%')
where code is primary key for MyTable.
The second select needs about 0.007 seconds (25 rows found). The whole statment needs 213.690 sec.
Why?
I wrote this statment:
Select Code, Field1, Field2, [...] from MyTable
Where code in (select code from anothertable where code2 like '%Something%')
where code is primary key for MyTable.
The second select needs about 0.007 seconds (25 rows found). The whole statment needs 213.690 sec.
Why?