Reputation: 83
I'm looking for sql query that can bring records of specific month from all years of record. i.e., I have record from 2001 till date...I want to bring record of May from all years.
Upvotes: 0
Views: 156
Reputation: 6275
Check out the MySQL function 'MONTH'...
WHERE MONTH(some_date) = 5
Upvotes: 3