Hi i have written this query but it will give earror(**Field must be grouped or aggregated**:)
[SELECT Profile\_\_c,name,count(NumberofLogin\_\_c),Startdate\_\_c,EndDate\_\_c FROM User\_\_c where GROUP BY PROFILE\_\_c];