SQL去重统计总数
表中存在一个账号多条记录情况,一个账号算一个客户,计算有多少个客户,并且客户份额不为0?
select count(distinct t.c_fundacco) from tstaticshares t where t.f_realshares <> ‘0’ ;
SQL去重统计总数
表中存在一个账号多条记录情况,一个账号算一个客户,计算有多少个客户,并且客户份额不为0?
select count(distinct t.c_fundacco) from tstaticshares t where t.f_realshares <> ‘0’ ;