Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 PLZ HELP: Top Destinations

Author  Topic 

jrahma
Starting Member

16 Posts

Posted - 2006-10-05 : 21:38:05
I have a table with list of calls made by our customers using our IVR and I want to get a list of top 10 frequent detinations with total number of minutes..

The destination field is : call_destination
The minutes field is : call_duration


** I am using C# in my appliction..

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-10-05 : 21:42:17
[code]select TOP 10 call_destination, sum(call_duration)
from table
group by call_destination
order by count(*) desc[/code]


KH

Go to Top of Page
   

- Advertisement -