So far I have written Aggregate function followed by Group By clause to find the values based on SUM, AVG and other Aggregate functions. I have a bit confusion in the Group
You omit columns from the SELECT inside aggregate functions, all other columns should exist in GROUP BY clause seperated by comma.
You can have query with aggregates and no group by, as long as you have ONLY aggregate values in the SELECT statement