I read the book - "SQL for mere mortals" - at the end of each chapter there is a task - to write short queries, so, I wrote a query to the task:
5.5. "Write down the request, which selects all orders, in which the amt (amount) field is set to O or NULL. The actual request:
SELECT * FROM Orders WHERE amt IN (0, 'NULL'); Correct request:
SELECT * FROM Orders WHERE amt < > 0 AND (amt IS NOT NULL); The question is why this type of query is not supported (if it is possible with explanations about data types)
(0,NULL)equivalent to(0)and therefore meaningless. - nick_n_a