Skip to content
Advertisement

How to combine multiple columns into one?

I have the following example table:

I need a query to combine the email columns in the way that the result would look like this, ignoring the nulls:

How can I do this?

Advertisement

Answer

You can use a lateral join:

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement