The following is an example. imagine that each date, separated by commas, is a row in the database
Entrance: - 2010-01-11, 2010-01-18, 2010-01-25, 2010-02-01, 2010-02-08, 2010-02-15, 2010-02-22, 2010-03-01 he must return
Ouput: 2010-01-25, 2010-02-22, 2010-03-01
The result is displayed by getting the last date in the month, the note for March in the database has only one date, so we use this value.
I would appreciate it if anyone could post some pseudo-SQL on how to approach this issue. Notice I am using My-SQL so that these date functions are available.
Greetings
source
share