Hi Sanjeev,
yes, you should have mentioned that it's more complicated.
Seems your explain in the 2nd post is the best you can get.
In a case like that i'd prefer putting the query in a Stored Proc, select the values into parameters and plug them into the SQL.
Dieter
Hi Sanjeev,
yes, you should have mentioned that it's more complicated.
Seems your explain in the 2nd post is the best you can get.
In a case like that i'd prefer putting the query in a Stored Proc, select the values into parameters and plug them into the SQL.
Dieter