post

0

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science

Q&A for scientists using computers to solve scientific problems

-- Step 2: Extract posts for the selected users
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 (465183,721269,3333,978917,165673,546730,1057,14637,67606,91,102937,477878,2141635,1902010,11654,602276,15416,497418,58808,5380,4342498,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,39430,122718,137350,1782465,12500315,247243,6509,981959,19679,9204,50476,817643,745,99834,419970,48015,418556,42346,352765,8747,247533,314166,501250,51685,462627,252228,144424,4668,790695,35364,221700,338665,24545,55075,783119,283366,478884,9209546,13627,362536,942852,14660,33732,220819)  
   )
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