My dates are stored in this format:
3-1-2011
3-15-2011
However, it seems to be getting sorted like this:
3-1-2011
3-10-2011
...
3-19-2011
3-2-2011
3-20-2011
...
3-29-2011
3-3-2011
3-30-2011
So when I try to pull data using WHERE date BETWEEN 3-1-2011 AND 3-3-2011, it appears to return results for everything from 3-1 to 3-29. Without changing all the values, it it possible to fix this?
Your data won’t sort as DATEs because you aren’t storing them as the SQLite supported format:
See the data type documentation for details.