I am writing a download process in which i have a condition where i
need to join four tables. Each table have lot of data say around
300000 recs.
my question is when i am doing the joins on the columns is there any
specific order i need to follow.
for example
My original query looks like this
select a.col1,a.col2
from a
inner join b
on a.id1=b.id1
and a.id2=b.id2
inner join c
on c.id1=b.id1
and c.id2=b.id2
inner join d
on d.id1=c.id1
and d.id2=c.id2
If i change the query like below... does it make any difference
select a.col1,a.col2
from a
inner join b
on b.id1=a.id1
and b.id2=a.id2
inner join c
on c.id1=a.id1
and c.id2=a.id2
inner join d
on d.id1=a.id1
and d.id2=a.id2
Any help is appreciated.
Thanks
Sri