Bonsoir,
Je suis en train de migrer de SQL server compact avec SQLite.
Je suis en train de tester des requêtes sous SQLite Administrator.
La requête suivante provoque une erreur :
Pourtant elle fonctionnait sous SQL Server, et si je fais un copier/coller de cette syntaxe dans une nouvelle requête ACCESS, ça marche très bien (je précise que j'ai une copie de ma BdD SQlite au format Access)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 SELECT t_References.N_ref, SommeDeQuantiteAchetee-nulltozero(SommeDeQuantiteConsommee) AS QuantiteDetenue FROM ((SELECT t_VinsAchat.N_ref as N_ref, Sum(t_VinsAchat.QteAchat) AS SommeDeQuantiteAchetee FROM t_VinsAchat GROUP BY t_VinsAchat.N_ref) r_Somme_Quantite_Achetee RIGHT JOIN t_References ON r_Somme_Quantite_Achetee.N_ref = t_References.N_ref) LEFT JOIN ( SELECT t_VinsConsom.N_ref as N_ref, Sum(t_VinsConsom.QteConsom) AS SommeDeQuantiteConsommee FROM t_VinsConsom GROUP BY t_VinsConsom.N_ref) r_Somme_Quantite_Consommee ON t_References.N_ref=r_Somme_Quantite_Consommee.N_ref GROUP BY t_References.N_ref, SommeDeQuantiteAchetee-nulltozero(SommeDeQuantiteConsommee)
Le message d'erreur est : SQL Error: RIGHT and FULL OUTER JOINs are not currently supported
Le pb est que je ne peux pas me passer de ce RIGHT pour le résultat attendu.
D'où peut bien venir l'erreur ?
Partager