I am new to web2py and I was wondering if it was possible to convert this mysql statement to web2py DAL. the dates are formatted as strings, It shows last day records of every month:
select *
from table
where STR_TO_DATE(date, "%d/%m/%Y") in
( select max(STR_TO_DATE(date, "%d/%m/%Y"))
from table
group by month(STR_TO_DATE(date, "%d/%m/%Y")), year(STR_TO_DATE(date, "%d/%m/%Y")) );
Any help will be much appreciated. I prefer to use dal over executesql but if it is not possible to translate then I will use executesql.
Thanks!