现在有这样一条SQL语句,
select count(*) sub from ( select distinct bas_ip from t_log_base t where 1=1 and to_char(t.bas_submit,'yyyymm')='200808' and t.BAS_SUBBRANDID ='1000' )
这有一个条件: distinct bas_ip,现在需要:增加一个条件 distinct bas_mobno, 这个SQL 应该怎么写?
谢谢大家了 :)
select count(*) sub from ( select distinct bas_ip from t_log_base t where 1=1 and to_char(t.bas_submit,'yyyymm')='200808' and t.BAS_SUBBRANDID ='1000' )
这有一个条件: distinct bas_ip,现在需要:增加一个条件 distinct bas_mobno, 这个SQL 应该怎么写?
谢谢大家了 :)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货