gate_s

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

SELECT COUNT(*) AS AllCount,t.AssignedCount,(COUNT(*)-t.AssignedCount) AS UnassignedCount
FROM 药品表
jOIN
(
SELECT COUNT(*) AS AssignedCount
FROM 质量分析分配表 
)as t on 1=1
group by t.AssignedCount

 

posted on 2014-05-07 16:43  gate_s  阅读(541)  评论(0编辑  收藏  举报