I\'m trying to select the user who has the MAX microposts count:
SELECT \"name\", count(*) FROM \"users\" INNER JOIN \"microposts\" ON \"microposts\".\"us
It's pretty simple, you can try:
SELECT "name", MAX(count_num) FROM (SELECT "name", count(*) as count_num FROM "users" INNER JOIN "microposts" ON "microposts"."user_id" = "users"."id" GROUP BY users.id) x