Why does this simple query return \'ORA-00936: missing expression\' (the database is Oracle as you can tell):
SELECT * FROM transactions WHERE id NOT LIKE \'1%\'
You need to specify the column in both expressions.
SELECT * FROM transactions WHERE id NOT LIKE '1%' AND id NOT LIKE '2%'