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 (1384652,149080,12983,184883,256970,150634,21632,13792,714968,1000343,370305,18511,108205,2411802,106159,4105,32880,25324,273200,241631,25222,67392,304,282848,861716,445517,135786,210578,428790,16363,107744,466862,29,205608,846273,2140,15245,44084,573261,238886,387076,95612,74757,1422451,314291,1104384,41360,98607,25449,348545,128511,214010,82320,2483313,91914,1229023,188246,8815,13055,2455888,142434,179125,410767,2442099,776560,7595,411591,75642,1686485,191596,80860,3250829,130758,75500,5423108,1285133,24054,5185595,104458,6461,377270,17279,16632,45664,15861,1811992,12725,16957,4482,370103,98046,107049,27439,164299,392,298607,1426065,1001985,2214,44984)
   )
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