I had SQL query that was taking 9 hours for execution. See below:
Select Field1, Field2
From A
Where Field3 IN (45 unique values here)
Whe
Poor query performance can be caused by a number of different issues, none of which I can even venture to guess would be your problem because there just isn't enough information:
With that being said you can always get a better idea of how your query is being interpreted by the query engine by running an EXPLAIN PLAN. Here is information on how to do this for an Oracle database, http://download.oracle.com/docs/cd/B10500_01/server.920/a96533/ex_plan.htm