POST

0

Please login or register to vote for this query.

(click on this box to dismiss)

Vegetarianism

Q&A for those committed to a vegan or vegetarian lifestyle and anyone interested in learning more

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 (44743,61027,3679676,1065197,1281433,2199,6694,188715,107415,1066031,1407478,2138752,343204,396458,5772882,308903,445543,1103052,837534,15872,93966,5628,55246,145403,5291015,226897,3603,485343,13673,318425,23643,542270,32914,6241235,4853,15682,3422102,10947,6024220,192,219743,1064226,11830,123582,106671,264,298624,43582,2847,11354,19212,1440565,95944,43681,844882,352552,2204410,107277,14089,315168,217332,4926,11568,3371862,1639625,550966,527185,2783370,113195,116923,532312,18122,1212596,1175,1069068,330057,38065,124486,54420,724626,2991525,42585,12707,1624921,1719752,1026459,3094533,8221725,228109,82586,104790,16241,20984,57191,47453,1782,1570000,155077,1627235,440502)
   )
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