I have the following query:
SELECT * FROM table
WHERE orderdate >= "2015-12-01"
AND orderdate <= "2015-12-31"
AND values > 0
AND orders <> 'Returned'
The problem is that the query doesn't return the rows where the orders column is NULL and I can't figure out why.
...AND (orders <> 'Returned' OR orders IS NULL)Also VALUES is a reserved word