'exists' dilemma
hello people,
someone told me that this statement:
if exists (select top 1 1 from customers) ...
is equivalent in performance to the next one
if exists (select * from customers)
this means that the rows from customers are not actually retrieved when using this last statement (or this is what i've heard).
i couldn't find anything on bol to convince me to use * instead of top 1 1, so i'm asking for your opinion here
thank you,
defiant
|