03Explorer
Technical User
I want to group data based on the Month and Year for counts.
I have a field that is Date/Time named [callstartdate] and I keep getting an error with the following code
All I get is 'A Syntax Error has occured' Where is my hangup?
I have a field that is Date/Time named [callstartdate] and I keep getting an error with the following code
Code:
select
Year(Callstartdate) Year,
month(callstartdate) Month,
appname,
count(sessionid) Total_Calls
from
vxmlsession
where
month(callstartdate) = 6
and year(callstartdate) = 2008
group by
year(callstartdate),
Month(callstartdate),
appname
order by
appname ASC
All I get is 'A Syntax Error has occured' Where is my hangup?