请帮我 ..
我运行这个查询:
select
distinct barang, COUNT(*) as jumlah, CAST(COUNT(*) as float) / 6
from
tbltes
group by
barang
Having
CAST(COUNT(*) as float) / 6 >0.2
现在..我想计算上面查询显示的所有行..
我试过这个查询..
select
count (distinct barang)
from
tbltes
group by
barang
having
CAST(COUNT(*) as float) /6 > 0.2
但不像我预期的那样......
所以我需要你的帮助主人...