I am developing android application. One of my application table has "foo_date" as column name. and data type is TEXT. I have following data in my table
primary key | foo_date | foo_value
--------------------------------------
1 2013-3-1 100
2 2013-3-2 2
3 2013-3-4 100
4 2013-3-3 1000
my requirement is to get data for the current week(i.e. 2013-3-4 to 2013-3-10). When i write below query, i am getting all data except row # 3
select * from foo_tbl where foo_date between '2013-3-4' and '2013-3-10';
How do I write sqlite
query so that it includes all data for current week?
Thansk Chintan