COMMENT

0

Please login or register to vote for this query.

(click on this box to dismiss)

Earth Science

Q&A for those interested in the geology, meteorology, oceanography, and environmental sciences

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 (10897,1735406,6899,3827,263004,769265,372,136540,26210,10320,107660,1426891,18515,120163,5014455,562459,1226894,13161,916657,2029983,361023,95589,2310830,142822,661853,2073595,634419,714969,17833,283863,42973,82219,2752075,81205,211116,92313,91757,496803,405143,1587046,3349551,496488,589259,201078,2915,61164,1426056,479989,59541,8454,176769,2274212,1631193,2443,11333,119895,598696,168986,2538939,791998,1920232,567751,901048,626273,165520,2635,3185459,19746,747579,496445,417501,3874623,2630078,3001626,429,1154350,383759,1966109,400056,227299,3853934,597607,192247,82609,5726027,42139,238978,77779,166712,625403,90801,8446,860099,379235,372239,4435,2548,46914,392044,35690)
   )
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