Questions tagged [full-outer-join]

A full outer join combines the effect of applying both left and right outer joins.

Conceptually, a full outer join combines the effect of applying both left and right outer joins. Where records in the FULL OUTER JOINed tables do not match, the result set will have NULL values for every column of the table that lacks a matching row. For those records that do match, a single row will be produced in the result set (containing fields populated from both tables).

243 questions
-2
votes
1 answer

Query regarding Full outer join

I have two tables and joining them using full outer join. Tab1: Crossswalk Ind name 123 Y abc Tab2: Crosswalk Ind name 123 Null abc 123 Null bcd select coalesce(a.crosswalk,b.crosswalk), a.Ind, coalesce(a.name,b.name) from…
-2
votes
2 answers

T-SQL Full Outer Join Statement not including unique values from joined table

I have a T-SQL statement that is supposed to do a Full OUTER JOIN. I'll call the original select statement table1, I'll call the joined table table2. My query is not returning values that are unique in table2 . More specifically, it is not…
Jared
  • 678
  • 8
  • 12
-2
votes
2 answers

Outer Join on multiple tables

select table3.tid, table3.name, talble4.name1, table4.name2 from table3 left join (select table1.tid, table1.name as name1, table2.name as name2 from table1 left join table2 on table1.tid = table2.tid union select table2.tid, table1.name,…
Udit
  • 977
  • 5
  • 11
1 2 3
16
17