Skip to content
Advertisement

merge tow querys in sql

I have a issuse in sql query.

I have 2 select:

The first one showing:

The other one showing:

I’m tying to merge this tow query,

this is my query:

The problem is when I’m using “Left join” the result is :

It’s not showing the value C for the second table,

And whene I’m using “right join” the result is :

It’s not showing the value D for the first table,

The result should be like that:

any solution please

Advertisement

Answer

Use full outer join

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