I need to write a SQLlite query that will remove rows from a table above 200. I thought this would work:
DELETE FROM [tbl_names] WHERE count(*) > 200
but it gives me: misuse of the cumulative count () function
I know there is a limitation that I can use, but if I use:
DELETE FROM [tbl_names] LIMIT 200
it looks like it will delete the first 200 lines.
source share