Code:
SELECT Artists_Cross.Artist, Artists_Cross.Role, Count(Artists_Cross.Role) AS CountOfRole
FROM Artists_Cross
GROUP BY Artists_Cross.Artist, Artists_Cross.Role
HAVING (((Artists_Cross.Artist)="xhonzi"))
ORDER BY Artists_Cross.Artist, Count(Artists_Cross.Role) DESC;
What I'm trying to do here is retrieve the most popular role for a particular artist. The output of this returns:
xhonzi Director 10
xhonzi Coffee Boy 9
xhonzi Writer 5
What I want it to return is the Director line and nothing more. What else do I need to do to my query?
Thanks,
xhonzi