sql - SUM MySQL rows of one column and have it group by another -
hey guys i'm trying create query sums 1 column , groups result another.
let me show mean showing tables!
this tickets table
expect result
as can see groups column app , issue , sums time per issue.
currently have this
select app,issue,sum(time) tickets group issues order name asc;
however it's not outputting expected result. appreciated.
you need group app in addition issues
select app,issue,sum(time) tickets group app,issue order name asc;
Comments
Post a Comment