Answer the question
In order to leave comments, you need to log in
Why does where crookedly work with boolean?
select count(*) from orders where is_break is null or is_break = false //результат 895
select count(*) from orders where is_break != true //результат 0
Answer the question
In order to leave comments, you need to log in
Because SQL is ternary logic. true, false and NULL: https://www.postgresql.org/docs/current/functions-...
null != whatever - will be null in the result.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question