Read more about this by downloading SQL books online free from
http://www.microsoft.com/sql
INNER JOIN FORMATS (only identical rows)
select *
from tablea, tableb
where tablea.id = tableb.id
select *
from tablea inner join tableb
on tablea.id = tableb.id
RIGHT OUTER JOIN FORMATS (all rows on right, shows null on left where no
match)
select *
from tablea, tableb
where tablea.id =* tableb.id
SELECT *
from tablea right outer join tableb
on tablea.id = tableb.id
LEFT OUTER JOIN FORMATS (all rows on left, shows null on right where no
match)
select *
from tablea, tableb
where tablea.id *= tableb.id
SELECT *
from tablea left outer join tableb
on tablea.id = tableb.id
FULL OUTER JOIN FORMATS ( shows null where no match)
Select *
from tablea, tableb
where tablea.id FULL OUTER JOIN tableb.id
Select *
from tablea, tableb
where tablea.id FULL JOIN tableb.id
CROSS JOINS (cross product, all possible combinations)
select *
from tablea, tableb
select *
from tablea cross join tableb
****************************************
Andy S.
MCSE NT/2000, MCDBA SQL 7/2000
an********@NOMORESPAM.yahoo.com
Please remove NOMORESPAM before replying.
This posting is provided "as is" with
no warranties and confers no rights.
****************************************
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!