Q&A about the site for members of the workforce navigating the professional setting
-- 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 (22656,6309,1144035,100297,157882,157247,23354,29407,115145,893,19068,17034,34397,95810,2901002,61974,5445,218196,19563,548225,1491895,23283,13302,15168,335858,106224,139985,69083,571407,88656,53114,217408,939860,13249,3832970,18393,505088,104349,279627,203907,209103,65863,65358,20860,9021,1968,1187415,18936,57695,12950,1126841,148870,224671,476,1863229,34509,367273,1583,119963,31671,179910,16417,1256452,596781,771848,67579,922184,223092,95592,284240,227665,263693,73226,187606,50079,1271826,479863,27535,45375,155423,55159,256196,276052,3043,1705598,182668,4279,28804,440558,1288,21234,138475,104891,4909087,28169,9530,1221571,541136,10661,85371) ) 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;