select count(a.*),count(b.*) from table a,table b
where a.STATUS=0 and b.STATUS<>0

解决方案 »

  1.   

    select count(a.*) 为o,count(b.*) 不为0 from table a,table b
    where a.STATUS=0 and b.STATUS<>0
      

  2.   

    select sum(decode(column,0,0,1)),sum(decode(column,0,1,0)) from table;
      

  3.   

    select count(*) as is0 from table where status=0
    union 
    select count(*) as notis0 from table where status<>0
      

  4.   

    select (select count(*) from TABLE where STATUS==0),(select count(1) from TABLE where STATUS<>0)
     from dual
      

  5.   

    同意 zmgowin(隐者(龙祖宗))!写的好!学习支持!