Calculating Percentage within a MYSQL Group -


my query calculates total numbers of calls within sla priority. need work out percentage of calls within sla priority within same statement

however unsure how within current statement

`select  sum(o.withinfix) 'total'  ,o.priority 'priority'  opencall o  left(from_unixtime(o.logdatex),4) = "2013"  , o.fk_company_id = "abc"  group o.priority' 

can help, using mysql 5.1

thanks

 select sum(o.withinfix) 'total',         sum(o.withinfix) / (select sum(withinfix) opencall) * 100 perc         o.priority 'priority'  opencall o  left(from_unixtime(o.logdatex),4) = "2013"  , o.fk_company_id = "abc"  group o.priority 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -