well my teacher told me to use timediff function for mysql
regardless, even using datediff and top returns the same exact syntax error:
Records: in 0.0003 sec Error: 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 '17:22:00, reg.registrationDateTime) from reg order by registrationDateTi' at line 1
Edited by - PrequelToTheSQL on 05/06/2012 23:08:28
well my teacher told me to use timediff function for mysql
regardless, even using datediff and top returns the same exact syntax error:
Records: in 0.0003 sec Error: 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 '17:22:00, reg.registrationDateTime) from reg order by registrationDateTi' at line 1
As expected you're using mysql which is another dbms This is ms sql server forum and people here are mostly familiar with only t-sql. So please post in some mysql forums for getting mysql related help
------------------------------------------------------------------------------------------------------ SQL Server MVP http://visakhm.blogspot.com/