Bonjour,
J'ai la requete suivante :
Elle calcule et affiche la somme des details d'1 commande client
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 SELECT commande_client.num_commande,commande_client.code_cli,commande_client.date_commande,Client.Nom_Cli, Sum((detail_commande_client.qte_cde*detail_commande_client.pu_vente_ht)*detail_commande_client.taux_tva) AS SommeTva,Sum(detail_commande_client.qte_cde*detail_commande_client.pu_vente_ht) As MontanthT FROM commande_client LEFT JOIN detail_commande_client ON commande_client.num_commande = detail_commande_client.num_commande GROUP BY commande_client.num_commande,commande_client.date_commande
J'aimerais ajouter la table client dans la jointure et je n'arrive pas à la mettre à l'endroit correct ca m'affiche tjrs des erreurs j'ai meme fait
merci pour votre aide
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 where commande_client.code_cli = client.code_cli
Partager