sorting two tables (full join)
Posted
by Ruslan
on Stack Overflow
See other posts from Stack Overflow
or by Ruslan
Published on 2010-04-13T09:27:13Z
Indexed on
2010/04/13
9:43 UTC
Read the original article
Hit count: 442
i'm joining tables like:
select * from tableA a full join tableB b on a.id = b.id
But the output should be:
- row without null fields
- row with null fields in tableB
- row with null fields in tableA
Like:
a.id a.name b.id b.name
5 Peter 5 Jones
2 Steven 2 Pareker
6 Paul null null
4 Ivan null null
null null 1 Smith
null null 3 Parker
© Stack Overflow or respective owner