Comment text search, with related post link

0

Please login or register to vote for this query.

(click on this box to dismiss)

Tor

Q&A for researchers, developers, and users of Tor

-- also displays both related users (main text + comment)

SELECT
            c.PostId AS [Post Link],
            COALESCE(u.DisplayName, c.UserDisplayName) AS [User],
            c.CreationDate,
            c.Id AS [Comment Link]
            --, c.Text  -- Comment link also shows text.
FROM        Comments    c
LEFT JOIN   Users       u
ON          c.UserId = u.id
WHERE       c.Text like '%' + ##CommentText:string?onstartups## + '%'
ORDER BY    c.CreationDate

Enter Parameters

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