Bonjour,
voici ma table histo_chantier ci-dessous :
Numero; Chantier; Date; Montant; TypeDep
11111; Chantier 11111; 01/01/2010; 5 000 € ; 1
11111; Chantier 11111; 01/01/2010; 2 000 € ; 2
11111; Chantier 11111; 01/01/2010; 3 000 € ; 3
11111; Chantier 11111; 01/02/2010; 15 000 €; 1
11111; Chantier 11111; 01/02/2010; 1 000 € ; 2
11111; Chantier 11111; 20/02/2010; 2 000 € ; 1
11111; Chantier 11111; 20/02/2010; 1 000 € ; 2
22222; Chantier 22222; 01/04/2010; 3 000 € ; 1
22222; Chantier 22222; 01/04/2010; 3 000 € ; 2
22222; Chantier 22222; 01/04/2010; 3 000 € ; 3
22222; Chantier 22222; 01/05/2010; 2 000 € ; 1
22222; Chantier 22222; 01/05/2010; 1 000 € ; 2
22222; Chantier 22222; 01/05/2010; 1 000 € ; 3
Je souhaite selectionner la somme des montants regroupés par date et par chantier MAIS uniquement la dernière date connue.
Résultat attendu :
11111 Chantier 11111 20/02/2010 3 000 €
22222 Chantier 22222 01/05/2010 4 000 €
merci de votre aide.... je suis pas sûr d'y arriver tout seul !
Partager