View Single Post
Old 10-12-2004, 10:23 AM   #7 (permalink)
technobard
Centurion Nova Prime
 
technobard's Avatar
 
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 287
technobard is on a distinguished road
Just a quick followup. I did some experimenting and found similar results to yours, even with updating the stats. One thing you should be aware of, however, is that the scalar subquery is not equivalent to
Quote:
select col_id, col_a, col_b, col_x, ... col_n
from table_1 t1, table_2 t2, ...
where t1.col_id = t2.col_id and ...
It is equivalent to an outer join and not an equijoin. This can affect your results, depending on the data of course.
__________________
It takes 2 points to draw a straight line, but at least 3 points to draw a conclusion.
technobard is offline   Reply With Quote