Boolean short circuiting is not guaranteed in SQL
morningcoffee.io
morningcoffee.io
I usually find the opposite surprising, when I write an expression and the query planner hasn't re-arranged what I wrote into whatever it thought was best based on available indexes and gathered statistics.