Sono delle query molto semplici
Operatori col maggior numero di chiamate
codice:
select top 10 chiamante, count(chiamante) as quante
from log
group by chiamante
order by count(chiamante) desc;
Numeri chiamati maggiormente (idem come sopra)
codice:
select top 10 telefono, count(telefono) as quante
from log
group by telefono
order by count(telefono) desc;
Durata chiamate per operatore
codice:
select top 10 chiamante, sum(duratachiamata) as totale
from log
group by chiamante
order by sum(duratachiamata) desc;