Calculate the general average grade with sum group by
问题 I have to display for each user the first and last name, year as studyYear, age, average grade, and also the general average grade. General average grade I need to be computed like this: Sum(AverageGrade)/ total number of grades [userID] [FirstName] [LastName] [BirthDate] [Year] [AverageGrade] My problem is the sum of the the general average grade. I understand that I have to use Sum(AverageGrade) + group by but it wont work, help? select FirstName+' '+LastName as FullName, AverageGrade ,Year