然后再查出mian_termianl_cnt<3的终端数  --是什么意思???

解决方案 »

  1.   

    select a.bureau_no,sum(b.main_terminal_cnt),sum(decode(sign(mian_terminal_cnt-3),1,mian_terminal_cnt)) "mian_terminal_cnt<3"--统计各分站主终端数
    from tcm_user a,tba_tv_card_ask b
     where a.user_id=b.user_id
       and a.finish_flag='1'
       and a.state='1'
       and a.user_seq=0
       and a.user_id=b.user_id
       and b.sequ=0
     group by a.bureau_no
      

  2.   

    beckhambobo(beckham):
    你太强啦,简直就是我偶像!!!!!!!!!!!!以后还请你多多指点!!感激不尽!!!感激不尽!!!感激不尽!!!