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 (625914,567435,345717,41316,77,242769,297408,421018,189950,694331,1060350,66226,157360,1622493,934239,114916,54249,1946,2060725,356788,1693173,1189885,471093,302916,642070,21441,970195,23691,399815,397861,418413,444036,1143732,99594,14755,3998402,151312,3916,10819573,160206,2908,1438393,469300,4642,451980,960757,90308,219162,166949,39375,557445,129404,1230836,413127,1860929,256138,493122,132047,244353,39742,953482,3510736,752738,650492,11858,17028,106979,19268,26349,383,160313,2683814,634863,570918,8655,941764,11208,1307905,277304,549372,1533054,5651,149808,680398,8705432,33522,182971,208,2805305,783681,444991,14606,53897,60777,9840637,6330,232610,28004,453596,98038)
   )
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