I am currently working on a baseball site. On one side of the page I want to display information about the next upcoming game. I am using mysql ver. 5.0.45. My table is built like this:
counteringTeam, date, time, rating
- The date is in mysql date format (yyyy-mm-dd)
- I found the dateiff command (date1, date2) and tried to experiment with this with no luck
I have tried queries like:
SELECT *
FROM schedule
WHERE MIN(DATEDIFF(CURDATE(),date))
- But this gives me a message because I am using the function incorrectly
MIN() - I'm still pretty new to mysql and I just can't figure it out.
source
share