bonjour,
voila j'ai 3 tables.
table1, Voiture avec un Id_Proprio, TypeProprio (F ou C)....
table2, Fournisseur avec un Id...
table3, Client avec un Id....

La voiture peut appartenir soit a 1 fournisseur soit a 1 client mais pas aux 2.

comment puis je faire pour selectionner sur la table client ou fournisseur en fonction du TypeProprio .

Je voudrais faire select * from voiture where if TypeProprio =c alors select nom_Client where _Proprio = Id_Client sinon select Nom_Fournisseur where Id_Proprio = Id_Fournisseur

Merci