Can any one please suggest me whats the wrong with my query.
SELECT SUM(cCallDuration), COUNT(*), AVG(cCallduration),
cBeginTime, cEndTime, cAnswerTime, cCallDuration, cDispatcherName, cConsoleName,
cEndpointName, cProfileName, cCallDirection, cCallType,
cCallNature, cCallData, cDirectedCall
FROM CALLINFO
WHERE cBeginTime >='7/11/2011 12:00:00 AM'
AND cEndTime <='7/11/2011 12:00:00 AM'
AND cCallType='InBound'
GROUP BY cConsoleName
I’m getting this error:
In aggregate and grouping expressions, the SELECT clause can
contain only aggregates and grouping
expressions. [ Select clause =
,cBeginTime ]
GROUP BY clause : Columns in any nonaggregate expression in the SELECT list must be included in the GROUP BY list.