SELECT with date range

suggest change
SELECT ... WHERE dt >= '2017-02-01'
             AND dt  < '2017-02-01' + INTERVAL 1 MONTH

This could be done with BETWEEN and an endpoint of 23:59:59. The half-open pattern has these benefits:

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents