62,266
社区成员
发帖
与我相关
我的任务
分享select pplt,count(*) as ct,pld from resume where datediff(mm,Getdate(),pld)=0 and lz='true' group by pplt,pld
union all
select pplt,count(*) as ct,pld from resume where datediff(mm,Getdate(),ptr)=0 and lz='false' group by pplt,pld
select * from(
select pplt,count(*) as ct from resume group by pplt) t1 inner join(
select pplt,count(*) as ct,pld from resume where datediff(mm,Getdate(),pld)=0 and lz='true' group by pplt,pld
union all
select pplt,count(*) as ct,pld from resume where datediff(mm,Getdate(),ptr)=0 and lz='false' group by pplt,pld
)t2
on t1.pplt=t2.pplt