请问怎么将以下两个句子连接?
以下两个单独都可以取出数据我想把数据到一张表里怎么连接
declare @count int select @count=count(1)
from JobOject where ishit='1'
declare @allcount int select @allcount=count(1) from JobOject where ToDep ='1'
if @count >0 and @allcount>0
select '名称' as DepartmentName, @count as '分子', @allcount as '分母'
else select '名称' as DepartmentName, 0 as '分子', 0 as '分母'
declare @count1 int select @count1=count(1)
from JobOject where ishit='1'
declare @allcount1 int select @allcount1=count(1) from JobOject where ToDep ='1'
if @count >0 and @allcount>0
select '名称' as DepartmentName, @count as '分子', @allcount as '分母'
else select '名称' as DepartmentName, 0 as '分子', 0 as '分母'