whether to use join or subquery
Hi
Which approach to take.
We have certain sql queries. In first case we have used join for retrieving the results where as in the second case we use sub queries to get the same results.
Which one of them is better , faster & more effecient.
I have read that joins are always the slowest.
Bye
Re: whether to use join or subquery
Quote:
Originally posted by zulu99
Which one of them is better , faster & more effecient.
I would say that you are the onlly person to be able to answer that.
i) try it on your own data
ii) don't establish any rules of thumb
iii) keep it as simple as possible
iv) benchmark each query with each methodology
v) question averything people tell you unless they can back it up with solid proof