SO.
I have a mySql table called 'houses'. The data I pull into houses comes in a format where there is a unique identifier (MLS) and each line item comes in with 'listoffice' and 'selloffice' as fields, too.
I can group and sum by either list office or selloffice but can I do a single group by / sum by using both fields.
E.g.: select count(mls) from house group by listoffice and selloffice order by count desc?
The intent is a list of sales that combines listoffice and selloffice where they are the same.
Edit: my intent is misstated. I am looking for an aggregrate list that combines the listoffice and selloffice count where they are the same. Where it counts the listoffice and selloffice instances, adds them, then produces a list of the ranked offices.
group by listoffice, sellofficenot and.