I\'m trying to select the user who has the MAX microposts count:
SELECT \"name\", count(*) FROM \"users\"
INNER JOIN \"microposts\" ON \"microposts\".\"us
I'd try with a ORDER BY max DESC LIMIT 1, where maximum is the count(*) field. Something like:
SELECT "name", count(*) maximum FROM "users"
INNER JOIN "microposts" ON "microposts"."user_id" = "users"."id"
GROUP BY users.id
ORDER BY maximum DESC
LIMIT 1
I dont' have mysql available now, so I'm doing this on the paper (and it might not work), but it's just an orientation.