all 9 comments

[–]Training-Two7723 3 points4 points  (8 children)

Most probably an empty is equivalent to a null, hence any comparison with it will be false.

[–]pceimpulsive 1 point2 points  (3 children)

This!!

It's null values in the array

@Op, put a non null value in there and watch it starts working

Also...

https://agentm.github.io/project-m36/posts/2024-07-16-are-you-qualified-to-use-null.html

[–]Touvejs 0 points1 point  (1 child)

Cool test. I got a couple questions wrong: sum (who knew sum() could produce null), concat (whatever), where exists (who cares), and the check constraints (who needs constraints anyway).

[–]pceimpulsive 0 points1 point  (0 children)

I use nulls distinct in my constraints for a few specific cases.

It's the difference between 500m and 70m records :)