I need to execute this below query.
db.delete(TABLE_SESSIONS, selectQuery, null);
The Select Query should be those except last 10 entries.
How to achieve this?
String selectQuery = "SELECT * FROM " + TABLE_SESSIONS +" WHERE " +KEY_SESSION_ID+ " IN (SELECT "+KEY_SESSION_ID + " FROM "+TABLE_SESSIONS+" WHERE " +KEY_SESSION_ID+ " ORDER BY Col LIMIT 10)";
Can anyone improve my query? ( I'm not good with query )