日期:2014-05-17 浏览次数:20822 次
create table a
(
SKU int,
AreaMedian int,
LocationMedian int
)
go
create table b
(
Area int,
Location int
)
go
insert into a values(12,001,3096)
insert into a values(13,001,3096)
insert into a values(12,001,3097)
insert into a values(14,005,3096)
insert into b values(001,3096)
insert into b values(001,3098)
insert into b values(001,3097)
insert into b values(002,3096)
select AreaMedian,LocationMedian from a
union
select Area as AreaMedian,Location as LocationMedian from b