Problème avec jointure externe
Je cherche à faire une jointure externe. Voici ma req.
Code:
1 2 3 4 5 6 7 8
|
select distinct tab2.chp1, tab1.chp2, tab2.chp3
FROM table1 tab1, table2 tab2
WHERE (select to_date(datetab,'dd/mm/rr') from table3 where cle='DATETAB') = tab2.datetab
AND tab1.datetab = (select max(i2.datetab) from table1 i2)
and tab1.code = tab2.chp1 (+)
AND 'Y' = tab2.chp2 (+)
AND 'Y' = tab2.ch3 (+) |
Je voudrais récupérer toutes les lignes de la table tab1 même si elles ne sont pas présents dans la table tab2.
mais ça marche pas. je récupère que les lignes en commun
merci