Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IN clause instead of Sub-select

Status
Not open for further replies.

txematrix

IS-IT--Management
May 4, 2004
2
ES
Hello, how can I force the use in the SQL statement of the IN CLAUSE instead of a sub-query?

I have a table (view) with the values I need, but the performance with sub-query is worst than with IN (values, ...).

I hope you understand me, and sorry for my bad english.

regards
 
Simply using 'in list' instead of 'equal' in query panel conditions section will do the trick........

T. Blom
Information analyst
tbl@shimano-eu.com
 
Thanks for your help, but it runs dynamically?, if the view is changing every time, the list do the same.
what I want to do is the results of a PROMPT but without choosing any value.

Thanks in advance for your help
 
Sorry for misreading your question, this is of course NOT dynamical. Subquery will be slower in any case, cause the inner query will have to build the value list , probably based on a condition in the where clause.

My suggestion will of course just work with a fixed list....

T. Blom
Information analyst
tbl@shimano-eu.com
 
I think it will still work as you state that the View is actually changing so that means blom0344's recommendation should still do the trick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top