My comments, ordered by score (Pundit badge progress)

15

Please login or register to vote for this query.

(click on this box to dismiss)

My Comments, ordered by Score 2

Bioinformatics

Q&A for researchers, developers, students, teachers, and end users interested in bioinformatics

-- My Comments ordered by score

DECLARE @UserId int = ##UserId##

SELECT 
    Comments.Score,
    Text,
    CASE WHEN Q.Id is not NULL THEN Q.Title ELSE Posts.Title END as QTitle,
    PostId,
    Posts.ParentId,
    Comments.CreationDate
FROM 
    Comments join Posts on Comments.PostId = Posts.Id
        left join Posts as Q on Posts.ParentId = Q.Id
WHERE 
    UserId = @UserId and Comments.Score > 0
ORDER BY 
    Comments.Score DESC

Enter Parameters

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