This question comes out of the database exam that I was looking at, so in a real situation nothing can happen ...
What output creates the next valid SQL statement? Explain your answer!
SELECT (NULL = NULL);
I can easily get the output of the instruction, which
school => select (null = null);
? column?
----------
(1 row)
in psql 8.4.11, but how and why is it an answer that I donβt know ... I would have guessed that it was trying to evaluate the expression inside the brackets and coming up with true / false, but apparently t.
Any hints on why he is acting as if this is happening?
thanks
source share