摘要:
with temp as( select 'A01' nation ,1 as S1,2 as S2, 3 as S3 from dual union all select 'A02' nation ,null as S1,5 as S2, 6 as S3 from dual)select ... 阅读全文
摘要:
说明:安装sql server 2012时,win7和win2008r2系统都需要打sp1补丁。1.SP1补丁下载地址(建议用迅雷下载):http://download.microsoft.com/download/0/A/F/0AFB5316-3062-494A-AB78-7FB0D4461357... 阅读全文
摘要:
select case when grouping(姓名)=1 then '合计' else cast(姓名 as varchar) end 姓名, case when grouping(学期)=1 and grouping(姓名)=0 then '姓名小计' else cast(学... 阅读全文