I have a sales table with the below columns
- name
- type (student, adult, worker)
- sales (A,B,C,D)
- cost
- location (1,2,3,4)
i want to get the count of type, sales and location which is relevant to the name and group by the name so i can display it on a table

is it possible get all the grouped values using a query>
any help willbe appreciated..