有多少坏的:
select count(设备名) from 设备表 where 是否坏了 = 坏了有多少主要设备:
select count(设备名) from 设备表 where 是否主要 = 是主要设备中有多少坏:
select count(设备名) from 设备表 where 是否主要 = 是 and 是否坏了 = 坏了
select count(设备名) from 设备表 where 是否坏了 = 坏了有多少主要设备:
select count(设备名) from 设备表 where 是否主要 = 是主要设备中有多少坏:
select count(设备名) from 设备表 where 是否主要 = 是 and 是否坏了 = 坏了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货