select top 10 * from comments; /*select max(comments...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Philosophy Meta

Q&A about the site for those interested in the study of the fundamental nature of knowledge, reality, and existence

--select count(*) from PostHistory

--select top 10 * from users

--select top 10 * from posts;

select top 10 * from comments;


/*select max(comments_count) as [Most number of comments]
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;




/*select answercount, count(id) as [Number of Posts]
from posts
group by answercount
order by answercount;*/

Select TOP 1 PostId, Score, Text from
(select PostId, Score, Text from comments)A
order by Score desc;

Enter Parameters

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