Does anyone know how to do outer left and our right joins in a same query?
If there are two tables, I want to get records from both table whether there is a match or not. For example, we would join on A-ID and B-ID
TableA Table B
A-ID A-Name B-ID B-Name
1 AA 1 BA
2 AB 3 BB
I want output like
A-ID B-ID A-Name B-Name
1 1 AA BA
2 NULLS AB NULLS
NULS 3 NULLS BB
If there are two tables, I want to get records from both table whether there is a match or not. For example, we would join on A-ID and B-ID
TableA Table B
A-ID A-Name B-ID B-Name
1 AA 1 BA
2 AB 3 BB
I want output like
A-ID B-ID A-Name B-Name
1 1 AA BA
2 NULLS AB NULLS
NULS 3 NULLS BB