Code:
[SELECT Last_name AS 'Last Name',[EEO-1 Classification] FROM Employee INNER JOIN Job ON Employee.JobID=Job.JobID GROUP BY [EEO-1 Classification] ]
Msg 8120, Level 16, State 1, Line 3
Column 'Employee.Last_ name' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
What am I doing wrong?
Comment