如何在T-SQL中执行Excel BINOM.INV计算?

时间:2018-12-03 12:37:48

标签: sql-server excel tsql probability probability-theory

是否可以在T-SQL(SQL函数)中执行Excel BINOM.INV计算?

Excel二项式逆运算

Lower confidence interval = IFERROR((BINOM.INV([@Denominator],[@VaccinatedYTDRate],0.025))/[@Denominator],0)
Upper confidence interval = IFERROR((BINOM.INV([@Denominator],[@VaccinatedYTDRate],0.975))/[@Denominator],0)


PracticeKey Category    ISOYear ISOWeek Denominator VaccinatedYTD   VaccinatedYTDRate   Lower confidence interval   Upper confidence interval
P140    Adults aged 65+ 2018    42  235 101 0.4298  0.365957447 0.493617021
P140    Children aged 2-9   2018    42  879 7   0.008   0.002275313 0.014789534

enter image description here

0 个答案:

没有答案