level 1
天煞aq孤星
楼主
select 'SS' as [Group]
, isnull(a.11,b.11) as description
, lower(isnull(a.11,'')) as value1
, lower(isnull(b.11,'')) as value2
from
(
select 11,22 from A
where as = '44' and qw = 1
) as a
full join
(select 11,22 from A
where as = '55' and qw =1
) as b
on isnull(a.11, '') = isnull(b.11, '')
where lower(isnull(a.22,'qaz')) != lower(isnull(b.22,'qaz'))
union
select 'QQ' as [Group]
, isnull(a.11,b.11) as description
, lower(isnull(a.11,'')) as value1
, lower(isnull(b.11,'')) as value2
from
(
select 11,22 from B
where as = '44' and qw = 1
) as a
full join
(select 11,22 from B
where as = '55' and qw =1
) as b
on isnull(a.11, '') = isnull(b.11, '')
where lower(isnull(a.22,'qaz')) != lower(isnull(b.22,'qaz'))
2017年01月17日 05点01分
1
, isnull(a.11,b.11) as description
, lower(isnull(a.11,'')) as value1
, lower(isnull(b.11,'')) as value2
from
(
select 11,22 from A
where as = '44' and qw = 1
) as a
full join
(select 11,22 from A
where as = '55' and qw =1
) as b
on isnull(a.11, '') = isnull(b.11, '')
where lower(isnull(a.22,'qaz')) != lower(isnull(b.22,'qaz'))
union
select 'QQ' as [Group]
, isnull(a.11,b.11) as description
, lower(isnull(a.11,'')) as value1
, lower(isnull(b.11,'')) as value2
from
(
select 11,22 from B
where as = '44' and qw = 1
) as a
full join
(select 11,22 from B
where as = '55' and qw =1
) as b
on isnull(a.11, '') = isnull(b.11, '')
where lower(isnull(a.22,'qaz')) != lower(isnull(b.22,'qaz'))