POST

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 PostBatch AS (
    SELECT
        p.Id AS PostId,
        p.Title,
        p.Body,
        p.OwnerUserId AS UserId,
        u.DisplayName,
        t.TagName,
        u.Location,
        ROW_NUMBER() OVER (PARTITION BY p.OwnerUserId ORDER BY p.CreationDate DESC) AS PostRowNum
    FROM Posts p
    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 LOWER(t.TagName) IN ('python', 'java', 'csharp', 'php', 'javascript', 'go', 'swift') -- Programming languages filter
    AND p.OwnerUserId IN (1317805,839646,104380,379693,105570,213269,1136211,80274,33006,1084,338204,622310,788207,400617,7714,214671,414076,250260,3574081,9833,957768,3207,24587,497356,52738,271959,1163867,4376,1831,62576,74314,703717,643383,3785314,3110834,198707,189179,58803,131874,424300,1053,263268,641955,1393766,1009603,1196,84889,1679310,234,1038015,15031,2696260,398968,134554,1098851,355230,2235132,2144390,58186,38360,2603,3081018,4851043,299924,147601,1009479,613430,1267329,1927832,4620771,1033896,123671,610569,135566,5056,3713,8954,3001761,1275169,134830,2035262,884978,745903,280244,259038,218589,1995738,1059372,143378,20394,29995,2756547,14357,305644,5728991,12993861,419,123471,852828,1987883)
   )
SELECT
    p.PostId,
    p.Title AS PostTitle,
    p.Body AS PostBody,
    p.UserId,
    P.DisplayName AS UserName,
    p.Location AS UserCountry,
    p.TagName AS PostTag
FROM PostBatch p
WHERE p.PostRowNum BETWEEN 1 AND 500;

Enter Parameters

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