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 (1084945,6067741,55943,4085910,3820,4265352,4203,3106920,6574038,12833166,1578604,8708364,66475,1529853,3594,16007,450128,26510,14742,112100,3799759,36590,46297,1188513,1898,272109,73297,43832,338,694576,302139,376728,812912,1627406,73681,341750,49376,7585,519216,322912,215752,358679,819272,137467,1554,742496,357,3521006,1331430,216063,2260,7671,2227743,245706,5274,249933,60281,66549,22459,249281,1730061,61158,892493,777186,90511,117471,436641,514235,15124,2015579,1048425,8047,7666442,1765658,5619,309925,868014,207432,2041092,3636601,5731,2368,272824,68507,5536,474189,680920,81769,3850405,280222,30529,671858,7231,415635,2057294,1512,241590,7461381,3705840,3889449)
   )
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