Bravo et merci !!
C'était aussi "bête" que celà !!
Cependant, je n'arrive pas à faire un regroupement sur ce champ, par exemple :
SELECT Datepart('ww',DateSerial(CInt(Left(Str(gehactc3.dathis), 5)), CInt(Mid(Str(gehactc3.dathis), 6, 2)), CInt(Right(Str(gehactc3.dathis), 2)))) as [date], sum(stkuvc) from gehactc3 where dathis >20090315 group by date
m'affiche : "vous avez essayé d'exécuter une requête ne comprenant pas l'expression spécifiée 'Datepart('ww',DateSerial(CInt(Left(Str(gehactc3.dathis), 5)), CInt(Mid(Str(gehactc3.dathis), 6, 2)), CInt(Right(Str(gehactc3.dathis), 2))))' comme faisant partie de la fonction d'agrégat"
Regroupement impossible ? ou j'ai encore un truc qui cloche ?
Partager