Group by query with count
Hi, any body can tell me how to group by query on the collection that I have retrieved from content model collection . My data structure is having an employee and depart and salary. I wants to get number of employees in each department with department name.