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 (666221,40655,114029,5768908,18103,385378,608639,510937,298053,3010968,1945651,111335,49701,383609,241536,1292848,5311735,8435,12030,1256624,70386,20261,544825,6463558,2509,3501,28324,131368,53850,4086,82156,3571,23199,675383,340760,350858,41956,163053,784387,939557,4856258,27009,1659,576875,131433,21239,138304,20972,45,1725764,27580,118903,168225,80911,1223975,594235,447156,20578,145587,21475,298575,797495,17389,1857266,1329652,12158757,865874,6508,127724,25847,24995,72247,1353011,390913,102441,87399,772649,822,960558,77335,211563,19410,296328,2474656,310726,147024,127893,701092,3558960,19403,171461,19082,19635,9034,30461,59111,217324,4833,650405,631619)
   )
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