How to select the first element of each day in a month with mysql query ?
I have table with offers – startdate, so i can check for each day,month,year i’m getting the element but, i’m wondering how to get only the first element in each day of some month ?
Assume the following
Try this:
If any dt has multiple B.id values try this: