top comment votes by user

1

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers Meta

Q&A about the site for Drupal developers and administrators

DECLARE @userid INT
SET @userid = '##UserId##'

select top 100 
  postid as [Post Link]
  , score
  , [text]
  , userid as [User Link]
  , creationdate
from comments
where userid=@userid
order by score desc

Enter Parameters

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