I'm using SQL SERVER 2014
I nead Ignore this error . GROUP BY with Aggregate Functions SLQSTAT = 42000
My problem is while executing this query
select empId, empName, empstate, sum(empsalary)
from emp
group by
empId, empName ;
Result :
COLUMN empId . is invalid in the select list because it is not contained in either an Aggregate Functions or the GROUP BY clause .