March 19, 2013 at 9:07 am
Hi
I am getting a syntax error on the following:
case
DATEPART(mm,APPT_RPT_APPOINTMENT.START_DATETIME)
when 07
then (APPT_RPT_APPOINTMENT.DURATION / 60)
end AS Julyschedhours
Thanks
Joe
March 19, 2013 at 9:11 am
jbalbo (3/19/2013)
HiI am getting a syntax error on the following:
case
DATEPART(mm,APPT_RPT_APPOINTMENT.START_DATETIME)
when 07
then (APPT_RPT_APPOINTMENT.DURATION / 60)
end AS Julyschedhours
Thanks
Joe
This small cut-off of the code looks fine but it doesn't constitute runnable SQL.
Please provide full query and exact error you get.
March 19, 2013 at 9:17 am
Sorry....
I missed a field that was placed a few lines below I didn't see....
I was missing the comma, it works now
Thanks
Joe
WHEN 07 THEN (APPT_RPT_APPOINTMENT.DURATION / 60) END AS Julyschedhours <-- no comma
APPT_RPT_APPOINTMENT.START_DATETIME
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply