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

Query Help Merging 2 Tables

$
0
0

I have 2 tables as follows and need the output to be as the 3rd example below.  I have tried using the left outer join, but have not been successful.  I am using SQLServer 2008.   

Any help would be appreciated.

Table1

colAcolBcolCcolD
147a
258b
369c

Table2

colAcolBcolCcolE
147d
458e

QUERY RESULT

colAcolB colCcolDcolE
147ad
258bnull
369cnull
458nulle




Viewing all articles
Browse latest Browse all 23857

Trending Articles



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