COMMENT

0

Please login or register to vote for this query.

(click on this box to dismiss)

Vegetarianism

Q&A for those committed to a vegan or vegetarian lifestyle and anyone interested in learning more

WITH CommentBatch AS (
    SELECT
        c.Id AS CommentId,
        c.Text,
        p.Title,
        p.OwnerUserId AS UserId,
        u.DisplayName,
        u.Location,
        t.TagName,
        ROW_NUMBER() OVER (PARTITION BY p.Id ORDER BY c.CreationDate DESC) AS CommentRowNum
    FROM Comments c
    INNER JOIN Posts p ON c.PostId = p.Id
    INNER JOIN Users u ON p.OwnerUserId = u.Id
    INNER JOIN PostTags pt ON p.Id = pt.PostId
    INNER JOIN Tags t ON pt.TagId = t.Id
    WHERE t.TagName IN ('python', 'java', 'csharp', 'php', 'javascript', 'go', 'swift') -- Programming languages filter
    AND p.OwnerUserId IN (13913,92315,995876,1531124,39933,3788176,1755598,6451573,23501,54964,4249,98117,207248,872395,334519,569436,123109,2598,5246885,7473,89806,83805,7586,251153,403671,5260024,31582,301832,464988,2756719,6277151,59303,548696,284795,2501279,40005,1743880,1695,64004,13552,91299,2435473,354577,1831293,412080,341251,1850609,51197,562769,3702797,3146,740,321697,16853,60711,2173917,390278,101258,364969,653856,1668533,918959,121747,56778,3522312,5866580,1202025,1109,469935,85134,302677,18747,2766176,15809,1441122,1109017,15537,141555,21709,157237,500104,421223,91671,1412059,56541,205185,17174,104184,1012053,716216,669586,134204,1426227,133802,1593077,10263,1357341,119280,1864976,4120)
   )
SELECT
    cb.CommentId,
    cb.Title AS CommentTitle,
    cb.Text AS CommentText,
    cb.UserId,
    cb.DisplayName AS UserName,
    cb.Location AS UserCountry,
    cb.TagName AS CommentTag
FROM CommentBatch cb
WHERE cb.CommentRowNum BETWEEN 1 AND 500;

Enter Parameters

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