Hi,
I have 3 table a,b,c.
select * from a
select * from b where aid in (select id from a)
select * from c where bid in (select Id from b where aid in (select id from a))
these quries in sp and giving correct result but as performance I need to optimise these
could you please suggest how do i improve perfomance. is any tools available to optimised
sql queries.
Thanks
Sql queries giving low performace need to improve it
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sai Prakash138 reputationPosted Dec 18, 2011, 11:01 PM EST
Mayur GujrathiRank #666 · 3.6K reputationPosted Dec 18, 2011, 11:48 PM EST
and then select query and press control+l that will display estimated execution plan for query
place mouse pointer over icon 'tablescan' ans note down estimated cpu cost
then create clustered index like this
create clustered index aid on a(id)
and do the same process you will get difference