How to find first day of year in SELECT?
SELECT `DATE`,`SomeValue1`,`SomeValue2` FROM `SomeTableName` WHERE (`DATE` >= [...first day of the year in date f
Don't know why but in my case when browsing through 3 mln. records the fastest method is:
where `DATE` >= CONCAT(YEAR(NOW()),'-01-01')