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 (44743,61027,3679676,1065197,1281433,2199,6694,188715,107415,1066031,1407478,2138752,343204,396458,5772882,308903,445543,1103052,837534,15872,93966,5628,55246,145403,5291015,226897,3603,485343,13673,318425,23643,542270,32914,6241235,4853,15682,3422102,10947,6024220,192,219743,1064226,11830,123582,106671,264,298624,43582,2847,11354,19212,1440565,95944,43681,844882,352552,2204410,107277,14089,315168,217332,4926,11568,3371862,1639625,550966,527185,2783370,113195,116923,532312,18122,1212596,1175,1069068,330057,38065,124486,54420,724626,2991525,42585,12707,1624921,1719752,1026459,3094533,8221725,228109,82586,104790,16241,20984,57191,47453,1782,1570000,155077,1627235,440502)
   )
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