Merci beaucoup Jopop ça a marché
en fait avant j'ai fait le cast mais avant la somme suit:
'SELECT Cast ( SUM ((NB1)/258151 )as float(20)) as som'
+' From ( SELECT Count(champ1) as NB1 FRom BNTrain where champ1 between 0 and 10000 )BNtrain'
la bonne formule c celle la
'SELECT SUM ( cast(NB1 as float (20))/258151) as som'
+' From ( SELECT Count(champ1) as NB1 FRom BNTrain where champ1 between 0 and 10000 )BNtrain'
j'espére quelle sera utile a un débutant comme moi en sql server
