$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · easy · #220

What does the query return?

SELECT COALESCE(NULL, 0, 5);
  1. 5
  2. NULL
  3. 0
  4. 1
COALESCE returns the first argument that is not NULL; 0 is not NULL even though it is falsy.
Play Problem Solving ▸