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.
| 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_destinationThe 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 tablegroup by call_destinationorder by count(*) desc[/code] KH |
 |
|
|
|
|
|