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 (978917,165673,546730,1057,14637,67606,91,102937,477878,2141635,1902010,11654,602276,15416,497418,58808,4342498,5380,572670,1707091,1204143,1695906,314488,19750,295783,271616,813,500584,123527,3923281,40347,235698,246342,836330,871050,309308,3297613,429846,790387,572644,1240763,1338292,324364,712649,5221944,3309790,1501794,264697,813602,1175966,87698,126214,113570,12500315,39430,122718,137350,1782465,247243,6509,981959,19679,9204,50476,817643,99834,745,419970,48015,418556,42346,352765,8747,314166,501250,51685,462627,252228,144424,4668,790695,35364,338665,55075,24545,783119,478884,283366,9209546,13627,362536,14660,942852,33732,220819,25646,5424988,415448,980833,76337)
   )
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