Thanks a million. I used DayofMonth and it worked immediately.!!!! Have been wrecking my brains so hard for a solution and it's actually that simple. Didn't know bout the existence of this function.
Btw, I'm using SQL version 3.2. Perhaps, the version is too low to be able to use the date() function.
Main Topics
Browse All Topics





by: angelIIIPosted on 2006-05-14 at 21:38:53ID: 16679936
What version of MySQL do you use vs which version of the documentation did you read?
Day() It is available as of MySQL 4.1.1.
you might try to use DAYOFMONTH(date) instead