I have a table which has columns
_id = Primary Key Auto Increment
Title = String
timestamp = long
I have 35 entries in my table. My table can contain only 25 entries at any given time. So that means have of knock off 10 extra entries from my table.
Also 35 entries should be first sorted by timestamp and the last 10 entries should deleted so that i have just 25 recent entries.
Can some please help me with a delete query that first sorts the entries by timestamp and keeps only 25 entries, deleting the rest.
Keeps the latest 25 entries.