skip to Main Content

Mysql – What is wrong with SQL syntax of my query?

I have such query in my program: SELECT customer.Id, customer.FirstName, customer.LastName, SUM(PeriodHours) AS SUMPeriodHours, PeriodDay FROM ( (SELECT CustomerId, (UNIX_TIMESTAMP(taskinterval.EndDateUtc) - UNIX_TIMESTAMP(taskinterval.StartDateUtc)) / 3600 AS PeriodHours, date(taskinterval.StartDateUtc) as PeriodDay FROM taskinterval WHERE StartDateUtc > @STARTDATE and StartDateUtc<@ENDDATE ) AS tmptbl…

VIEW QUESTION
Back To Top
Search