What does CONCAT return when one argument is NULL?
Customer 3 (Carol) has no city recorded. What string will the query produce?
Predict the resultNULLSeniorAnalystData EngineerBackend
Input data · iv_customers
| id | name | city |
|---|---|---|
| 1 | Alice | Berlin |
| 2 | Bob | Paris |
| 3 | Carol | NULL |
| 4 | Dan | Berlin |
| 5 | Eve | Paris |
Query
SELECT CONCAT(name, ' / ', city) AS label
FROM iv_customers
WHERE id = 3