Visualizzazione dei risultati da 1 a 9 su 9

Hybrid View

  1. #1
    hai provato a fare

    SELECT * FROM chiamate_reportwhere status = 'NOTSERVED' and conversationTime > 30

  2. #2
    Quote Originariamente inviata da optime Visualizza il messaggio
    hai provato a fare

    SELECT * FROM chiamate_report where status = 'NOTSERVED' and conversationTime > 30
    Allora adesso vedo che il risultato è corretto e che infatti conta le chiamate not served con tempo < 30 secondi.
    Il problema adesso è sul calcolo delle percentuali che mi dà sempre il 0%.

    Il codice è questo:
    codice:
    ifnull((count(case when status = 'NOTSERVED' and conversationTime > 30 then uniqueId else null end)/count(case when status = 'NOT SERVED' then uniqueId else null end)*100),0) as '% chiamate non servite superiore a 30 secondi',
    E' corretta?

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.