I want to retrieve data between two dates in Android SQLite I used one function in SQLiteAdapter class. My function is
public void history(String startdate,String enddate) {
Cursor mCursor = db.rawQuery("SELECT * FROM "+ KK_AIRLINEBOOK +
" WHERE " + KEY_Bookingdate +
" BETWEEN " + startdate + " AND " + enddate , null);
}
However it doesn't work it shows syntax error near AND
codebutton for code formatting in the future - see my edit).