Skip to content
Advertisement

Single column from Multiple columns from join in SQL

I have a table output like this, which is a result of multiple table joins.

I am trying to get a table like this.

This is what i am doing currently doing. Not sure how to make the three columns combine to a single column.

Advertisement

Answer

If you have only one value per row — or if you just want the first one– then use coalesce():

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