I\'d like to know if it\'s possible to do the following using a single sqlite statement:
My table looks something like this:
|AnId|UserId|SomeDate|So
If you already haven't got the answer. If it's one table, then you don't need any joins. You can just use:
Delete From data where AnId not in (Select AnId from data Order by SomeDate DESC Limit 10)