I have following query:
SELECT * FROM (
SELECT * FROM pojmovi WHERE pojam LIKE '%og'
) WHERE pojam NOT LIKE '%olog';
This works as expected, selecting all from column pojmovi
that ends in 'og' but not in 'olog', now, I want to delete those results, so I'm trying something like:
DELETE FROM (
SELECT * FROM pojmovi WHERE pojam LIKE '%og'
) WHERE pojam NOT LIKE '%olog';
And this query causes near "(": syntax error Is this somehow possible in sqlite?