scriptscribe
MIS
Hi,
I have three tables all of which have names and numbers in them in corresponding rows. I want a query to match on the numbers of all three tables, while also returning the nulls in all three tables. I'm doing the comparison between the three tables because I need to know which tables need the names and numbers added and need to display them all on one spreadsheet.
Here are examples of my tables:
Table1
Smith,John 51111
Donner,Jane 52222
Jones,David 53333
Johnson,Susie 54444
Table2
Smith,John 51111
null
Jones,David 53333
null
Table3
null
Donner,Jane 52222
null
Johnson,Susie 54444
I want the results to look like this:
Table4
I know how to do a left outer join and a basic inner join, but am lost about how to approach this.
Can anyone give me a hand?
Thanks,
Mike
I have three tables all of which have names and numbers in them in corresponding rows. I want a query to match on the numbers of all three tables, while also returning the nulls in all three tables. I'm doing the comparison between the three tables because I need to know which tables need the names and numbers added and need to display them all on one spreadsheet.
Here are examples of my tables:
Table1
Smith,John 51111
Donner,Jane 52222
Jones,David 53333
Johnson,Susie 54444
Table2
Smith,John 51111
null
Jones,David 53333
null
Table3
null
Donner,Jane 52222
null
Johnson,Susie 54444
I want the results to look like this:
Table4
Code:
Smith,John 51111 Smith,John 51111 null
Donner,Jane 52222 null Donner,Jane 52222
Jones,David 53333 Jones,David 53333 null
Johnson,Susie_54444 null Johnson,Susie 54444
I know how to do a left outer join and a basic inner join, but am lost about how to approach this.
Can anyone give me a hand?
Thanks,
Mike