Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Group By

Bonjour à tous,

Je tente sans succès d'intégrer une clause Group by dans mon script. A partir d'une table détaillée je voudrais une table agrégée par mois et numéro de comptes. Voyez plutôt:

tableA:

Load Société, Date, Année, Mois, Journal, Libellé, Pièce, Compte, Montant

FROM fichier123.qvd ;

tableB:

Load Société, Année, Mois, Compte, Montant

Resident tableA,

Group by Mois, Compte ;

Drop table tableA.

D'avance merci pour votre précieuse aide.

Maxime Bourg

1 Solution

Accepted Solutions
ashfaq_haseeb
Champion III
Champion III

Salut essayer comme ça

tableA:

Charge Entreprise, Date, Année, Mois, Journal, Étiquette Chambre, compte Montant

DE fichier123.qvd;

tableB:

Charge somme (montant) comme ToalAmount, Société, année, mois, compte,

TableA résident,

Groupe par mois, compte, entreprise, Année;

Drop table tableA.

Cordialement

Ashfaq

View solution in original post

2 Replies
MK_QSL
MVP
MVP

tableB:

Load Société, Année, Mois, Compte, Sum(Montant) as TotalMontant

Resident tableA

Group by Société, Année, Mois, Compte;

ashfaq_haseeb
Champion III
Champion III

Salut essayer comme ça

tableA:

Charge Entreprise, Date, Année, Mois, Journal, Étiquette Chambre, compte Montant

DE fichier123.qvd;

tableB:

Charge somme (montant) comme ToalAmount, Société, année, mois, compte,

TableA résident,

Groupe par mois, compte, entreprise, Année;

Drop table tableA.

Cordialement

Ashfaq