Je beschrijft in feite de COALESCE
functie:
https://www.postgresql.org/docs/9.6/static /functions-conditional.html
In jouw geval:
SELECT id, COALESCE(name, alias) AS result FROM yourtable;
Je beschrijft in feite de COALESCE
functie:
https://www.postgresql.org/docs/9.6/static /functions-conditional.html
In jouw geval:
SELECT id, COALESCE(name, alias) AS result FROM yourtable;