对双表不同字段的一条查询语句

有库a和库b,库a的字段为aa和bb,库b的字段为aa和cc

库a的内容为
--aa--bb--
--1---qw
--2---hh

库b的内容为
--aa--cc--
--3---kl
--4---p

我想生成这样的结果集:
--aa--bb--cc--
--1---qw------
--2---hh-------
--3---------kl-
--4---------p--

用一条sql语句,怎么写?
我用的数据库是oracle,有mssql的也可以,参考一下,应该是一样的
 
UNION倒是提醒了我
Create Table #temp1 (aa int IDENTITY,bb varchar(50))
insert into #temp1 values('qw')
insert into #temp1 values('hh')
select * from #temp1

if OBJECT_ID('tempdb..#temp2') is not null
  Drop Table #temp2
Create Table #temp2 (aa int,cc varchar(50))
insert into #temp2 values(3,'kl')
insert into #temp2 values(4,'p')
select * from #temp2

select a.aa,a.bb,b.cc from #temp1 a left join #temp2 b on a.aa = b.aa
union select c.aa,d.bb,c.cc from #temp2 c left join #temp1 d on c.aa = d.aa