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 (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
    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