-1
私のデータベースには以下のデータがあります。時間差平均の計算方法は?
私は私がしようとしています(ServiceTime(ServiceEnd-ServiceStart)< = EstimateServiceTime)/ interactionCount理由での相互作用のこの
するvar serviceSuccess =数などの従業員のためのサービスの成功を計算したい
EmployeeId ServiceStart ServiceEnd EstimateSErviceTime ServiceSuccess
1 1:00 2:30 1:00 ?%
2 2:00 3:00 00:45
3 3:00 3:30 00:30
4 12:00 1:30 1:15
5 2:00 3:00 1:30
このようにするには:
SUM(case when AverageServiceTime < EstimateServiceTime then 1
else 0
end)/COUNT(I.Id) ServiceSuccess
from Interaction I
ServiceSucessを計算する方法。
?それはタイプミスですか? – Tanner
@Tannerはい、タイプミスで修正されました。 –
期待される出力を表示できますか? –