select t.apanagecode
count(t.labcode) as
(select sum(f.hivfastsum)
from aids_lab_labtesting f
where f.labcode = t.labcode)
from aids_lab_labinfomanger t
where regexp_like(t.detect, '1[^0-9]')
group by t.apanagecode,t.labcode
结果集是
1 15000000 1 250
2 15000000 1
我想算出这样
1 15000000 2 250
count(t.labcode) as
(select sum(f.hivfastsum)
from aids_lab_labtesting f
where f.labcode = t.labcode)
from aids_lab_labinfomanger t
where regexp_like(t.detect, '1[^0-9]')
group by t.apanagecode,t.labcode
结果集是
1 15000000 1 250
2 15000000 1
我想算出这样
1 15000000 2 250
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货