现在的位置: 首页 > 综合 > 正文

oracle Count(0)-Count(0)

2012年04月04日 ⁄ 综合 ⁄ 共 126字 ⁄ 字号 评论关闭

1、两个统计量的减法:

select
(select count(*) from defect)-(select count(*) from defect where cljg like '%合格%' and cljg not like '%不合格%') as count
from dual 

抱歉!评论已关闭.