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 (1084945,6067741,55943,4085910,3820,4265352,4203,3106920,6574038,12833166,1578604,8708364,66475,1529853,3594,16007,450128,26510,14742,112100,3799759,36590,46297,1188513,1898,272109,73297,43832,338,694576,302139,376728,812912,1627406,73681,341750,49376,7585,519216,322912,215752,358679,819272,137467,1554,742496,357,3521006,1331430,216063,2260,7671,2227743,245706,5274,249933,60281,66549,22459,249281,1730061,61158,892493,777186,90511,117471,436641,514235,15124,2015579,1048425,8047,7666442,1765658,5619,309925,868014,207432,2041092,3636601,5731,2368,272824,68507,5536,474189,680920,81769,3850405,280222,30529,671858,7231,415635,2057294,1512,241590,7461381,3705840,3889449)
   )
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