I'm trying to get some records with a very simple syntax, but it's not working. I'm doing something wrong and I'm not realizing it. Can someone lend a hand?
I need to fetch all 2017 records except FREIGHT AND TAXES! I have this:
SELECT *
FROM table_01
WHERE data_reg LIKE '2017%'
AND (Desc <> 'FRETE' OR Desc <> 'IMPOSTO');
But that way all the 2017 registrations, including freight and taxes, are coming.