I think the following error relates to the DateDiff function in my syntax, but I am not sure.
ERROR [42000] [MySQL][ODBC 3.51 Driver][mysqld-4.0.18-nt]You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '('StartDateTime','EndDateTime')/24/60) AS TotalMinutes, StartDa
SQL
I read the documentation on MySQL.com and made the following changes, but I am still getting the same error.Code:Select Sum(DateDiff('n',StartDateTime,EndDateTime)) AS TotalMinutes, StartDate From Scheduled_WorkOrders Where EmployeeID = 1 Group By StartDate
SQL
Code:Select Sum(DateDiff('StartDateTime','EndDateTime')/24/60) AS TotalMinutes, StartDate From Scheduled_WorkOrders Where EmployeeID = 1 Group By StartDate









Bookmarks