D'après les premiers tests se seraient dans ce style là :
SELECT
Doc.Nodoc AS Nodoc,
Doc.titre AS titre,
Doc.sstitre AS sstitre,
Collec.Collection AS Collection
FROM
Collec RIGHT OUTER JOIN Doc ON Doc.nocolle = Collec.IDCollec
WHERE
Collec.Collection LIKE %{cColl}% AND Collec.IDColl<>0
OR Doc.titre LIKE %{cTitre}%
Cependant j'ai un autre problème quand je vais encore plus loin avec un double relation (cf. analyse).
Là ça se gate et je tourne en rond ...
Attacher un fichier:
rel_complex.JPG (38.38 KB)
Cette contribution était de : http://old.wdforge.org/newbb/viewtopic.php?forum=19&topic_id=5964&post_id=24058