select max(comments_count) from (select p.id, count(c...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Android Enthusiasts

Q&A for enthusiasts and power users of the Android operating system

--select count(*) from PostHistory

--select top 10 * from users

--select top 10 * from posts;


select max(comments_count)
from 
(select p.id, count(c.id) as comments_count 
from comments c join posts p
on c.postid = p.id
group by p.id) temp;
--order by comments_count desc) temp;
--where postid = 41203620;

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results