In my db i have stored price of products for everyday.
I need records based on last record of every month.
when i apply group by month, it is giving the first record of the month.
Query i have tried was,
select * from product where product_id = 52
AND YEAR(date_modified) = YEAR(NOW()) GROUP BY MONTH(date_modified)
Any ideas are welcome