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 (9493,33686,19299,1663001,168657,23649,165495,2767755,267887,3943312,100754,481267,797,149482,1418796,2296458,597657,459897,4465,18180,15541,9410,565635,53212,63756,45433,259769,179850,64313,27423,184046,5623035,878126,44853,1463116,89266,38206,59501,885318,11123,265143,511529,572,1841839,1744834,81179,493,17744,350087,60188,710446,1384297,1734130,1942,997358,478399,1385941,344949,1450,3037257,594420,105224,1950,97828,1714410,3848,320726,12579,3418066,288671,41021,477037,736079,7582247,541038,198633,167735,2988730,412770,2119,400547,1420197,451475,3191,121493,2586922,3617886,35092,9360,3593996,613130,21677,234938,880990,2670892,1180620,109305,318758,290085,613198)
   )
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