Skip to content
Advertisement

Join three selects into one

I’m using SQL Server 13.0.5102.14.

I have these three selects:

I want to join these three selects into one to get this:

My problem here is that I’m using Code table to get three different values.

How can I do it to join these three selects into one?

Advertisement

Answer

Dirty using union and assuming your current queries work.

You could improve this question by providing sample data and expected output

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