POSTS

0

Please login or register to vote for this query.

(click on this box to dismiss)

Amateur Radio

Q&A for amateur radio enthusiasts

-- 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 (588867,617801,1465704,1950295,414184,6737970,2607177,168501,631612,424721,4515004,1866563,4766534,12219679,7811940,1748599,395169,4022390,1776916,551406,7585,474189,20126,139985,134633,9990,5380,2313887,797,53212,493,3418066,5768908,405143,1897,497043,221955,4161,195835,474349,913184,4014959,78000,5648954,10583,314661,390388,1258398,179630,58129,248521,63810,17041,4468648,2067753,5769,53158,1294207,19851,23341,23339,70157,138206,28832,611,36036,39532,13163,41211,49,3068190,124259,881441,3293881,1501794,84201,1202025,370305,567751,5726027,472375,1190388,1860929,1823841,661933,6433023,4248328,12833166,46297,2396539,111435,2522554,155861,1134940,174261,776084,1011959,1114338,4921103,3218114)
   )
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 0 AND 500;

Enter Parameters

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