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 (69802,1059101,391161,118703,11372593,436560,5728,600500,98401,388787,50776,1414562,1305344,2088135,41665,2172,552067,6148,1697099,254279,1374437,48684,783743,66353,4984832,476408,139300,757508,1461210,8427,1169798,467473,130929,1741542,1823841,379008,110204,2938,62130,1610034,1009922,297762,2541560,986,2530848,2411320,368691,6294072,221955,2469,3993662,11238,321946,322129,4573247,1114486,43846,16511,193619,164998,471795,3723423,93448,28376,281848,23070,661933,1064245,131930,83109,148357,229602,636656,137902,1835379,241462,330280,508666,1214800,23368,6433023,608772,573,72791,542091,4248328,1333975,648658,277176,37947,369707,524555,681865,2149718,333255,551406,825789,459640,111896,399317)
   )
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