If I want to know the total amount of salary on each customer, then GROUP BY query would be as follows:
SELECT NAME, SUM(SALARY) FROM CUSTOMERS GROUP BY NAME;
But, if I don't want sum of salaries and just need to look all salaries grouped by name then what will be query or approach?