Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Joing two databases and then Outer Joining

$
0
0

Hi ,

I;m fairly new at SQL 2012 so hopefully someone can help me.

I've been asked to do the following on some tables and could use some input.

I want join fron database A table1 and table2.

I would assume that I need to look at these table and determine what is the common primary key.

Then after joining these tables I need to "outer join" Table 1 and 2 to database B table 3

I thought to use Management studio. would this be the correct join cpmmand?

select table1, table2

From Database A

Where primary key = primary key

I don't know how to write the outer join statement from here. Any suggestions?

thanks

Steve


Steve


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>