i think what you want is average of distinct records which is not equal to DISTINCT AVG(). try like thisselect AVG(strMoyenne) from (SELECT DISTINCT strMoyenne fromtblNotePolyvalente where intSchoolId = 1331 and strClasseName = 'Français I -10131'ANDstrMoyenne >= 55 and strMoyenne is NOT NULL)t
and select AVG(strMoyenne) from (SELECT DISTINCT strMoyennefrom tblNotePolyvalente where intSchoolId = 1331 and strClasseName = 'Français I -10131'ANDstrMoyenne < 55 and NOT strMoyenne is NULL)t