Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想找到平均值
avg = sum(a*b) / ISNULL( NULLIF (sum(b) , 0) ,1)
其中 a 或 b 可以为 0