Mysql
 sql >> Database >  >> RDS >> Mysql

Query MySQL per determinare se il dato datetime è incluso nell'intervallo datetime

Ecco a te:

Select * from calendar_date as ,c where LEAST(c.end, end) - GREATEST(c.start, start) > 0