I want to merge two columns in PostgresQL query by the following rule:
select (column_1 or column_2) as column_3 from my_table
Is there a way to achieve it? Though quite clear, I want to prefer column_1 value as column_3 but if it is null, I would like column_2 value as column_3.
Sorry if this sounds naive, thanks!