I have an SQLite blog_posts table. Each blog post has id and blog_id .
If I want to know how many blog posts there are in each blog:
SELECT blog_id, count(1) posts FROM blog_posts group by blog_id
What should I do if I want to know how many posts there are on the blog with most posts? (I don't need blog_id .) This seems to be illegal:
SELECT max(count(1)) posts FROM blog_posts group by blog_id
I'm sure something is missing, but I donβt see it ...
Rudie source share