c# - Create a graph from a two column resultset -


i need create sql query analyze atendimetos employee

my goal query , create graph showing total minutes called : how many 120minutes (very service time ) , how many below 120minutes ( normal calls ) put use in chart in c#

the easiest way result in 2 columns right?

how can ? unable think of solution.

select sum(callduration) callsfromcustomers  date(calldate) between'2015-06-01' , '2015-06-31' , callduration < 120 union  select sum(callduration) callsfromcustomers  date(calldate) between '2015-06-01' , '2015-06-31' , callduration >= 120  

result

sum(callduration)|             5584 |             759  | 

select  (select count(*) callsfromcustomers  date(calldate) between'2015-06-01' , '2015-06-31' , callduration < 120) shortcalls,  (select count(*) callsfromcustomers  date(calldate) between '2015-06-01' , '2015-06-31' , callduration >= 120) longcalls 

Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -