1 of 2
l0b0
  • 11.4k
  • 2
  • 44
  • 48

I really like James Anderson's solution - Accurately bounding the dates is the way to get the most flexible query structure. Another way of achieving the same is to use a start, end or even center date plus an interval (available at least in PostgreSQL, Oracle and SQLAlchemy).

l0b0
  • 11.4k
  • 2
  • 44
  • 48