SELECT TOP 1 p.Id As PostId, p.Body As PostBody, p.Score ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu Meta

Q&A about the site for Ubuntu users and developers

SELECT TOP 1 
    p.Id As PostId,
    p.Body As PostBody,
    p.Score As CommentScore
FROM Comments c
INNER JOIN Posts p
ON c.PostId = p.Id
ORDER BY c.Score DESC;

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results