Hi.

I need with this query that when the current month in the field `_Dates` is null, where condition change to the previous month to the current.

This query is working but you can optimize it?

PHP Code:
SELECT `_Dates
   
FROM _tableDates
      WHERE
         MONTH
(`_Dates`) = MONTH(`_Dates`())
         OR 
MONTH(`_Dates`) = MONTH(`_Dates`)-