Advertisement
Guest User

Untitled

a guest
Feb 20th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. SELECT
  2. SUM(CallCount) AS Total,
  3. SUM(SuccessCallCount + ErroOsCorte) As TotalSuccess,
  4. cast(SUM(SuccessCallCount) as decimal) / SUM(CallCount) As SuccessRate,
  5. SUM(AbandonedCallCount) As TotalAbandon,
  6. cast(sum(AbandonedCallCount) as decimal) / SUM(CallCount) As AbandonRate,
  7. SUM(ErrorCallCount + FatalErrorCallCount + InvalidInputCount + ErroSAP + ErroInvClientIdent) As TotalError,
  8. SUM(TransferedSapError + InvalidClientIdentCount + TransfInvalidInputCount) As TotalTransfered,
  9. SUM(TransferedOk + TransferedCutOrder) AS TotalIvrTransfered,
  10. Avg(Duration) As DurationAvg,
  11. Max(Duration) As DurationMax,
  12. Min(Duration) As DurationMin,
  13. SUM(univocCPE) as univocCPE,
  14. SUM(univocNIF) as univocNIF,
  15. SUM(univocCUI) as univocCUI,
  16. SUM(TransferOLD) as TransferOLD,
  17. SUM(InitialMenu) as InitialMenu,
  18. SUM(Duration)/Cast(3600 as decimal) AS TotalDuration
  19. FROM dbo.ComercialCallVolumetryViewMLivre_NumeroVerde
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement