What is the equivelant of the following SQL in rails:
SELECT person, count(person) as occurance FROM invoice GROUP BY person;
This would give something like:
Person | Occurance
It seems the fx. Person.count(…) will only yield the actual occurance,
but not listed with the actual person - and Person.find(…) will not
give the occurance. So is my only option to use find_by_sql() ?