Bonjour,ja'i 2 tableau
client qui contient
mat | nom | prenom | age
123 | aa | bb | 22
124 | xx | yy | 24
commande qui contient
id qt mat
78 4 123
select client.mat,nom,prenm,age,qt from client,commande where client.mat=commande.mat and client.mat=123;
cette requete il m'affiche:
mat | nom | prenom | age | qt
123 | aa | bb | 22 | 4
select client.mat,nom,prenm,age,qt from client,commande where client.mat=commande.mat and client.mat=124;
cette requete il m'affiche rien parce que il n'y a pas valeur 124 dans table commande
le question comment faire pour modifier cette requettel, lorsque 124 de le champ mat n'existe pas dans tableau commande il m'affiche selement client.mat,nom,prenm,age.
Partager