post

0

Please login or register to vote for this query.

(click on this box to dismiss)

Anime and Manga

Q&A for anime and manga fans

-- 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 (134204,133802,1357341,1593077,10263,119280,1864976,4120,1317805,839646,379693,104380,105570,213269,1136211,80274,33006,1084,338204,622310,788207,7714,400617,214671,414076,250260,3574081,9833,957768,3207,24587,497356,52738,271959,1163867,4376,1831,62576,74314,703717,643383,3785314,3110834,89817,198707,189179,58803,131874,1053,424300,641955,263268,1393766,1009603,1196,84889,1679310,234,15031,1038015,2696260,398968,134554,2611,1098851,355230,2235132,2144390,58186,38360,2603,3081018,147601,299924,4851043,1009479,613430,1267329,1927832,4620771,1033896,3713,135566,5056,610569,123671,8954,1275169,3001761,134830,2035262,884978,745903,259038,280244,218589,1995738,1059372,143378,20394)  
   )
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