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 (2658050,66516,974731,187730,22996,90691,15401,234322,14419,447356,404970,427545,1492009,1615483,1445366,32453,63034,6022656,152083,1862,92153,387194,190201,332059,947357,414062,457268,97572,395910,68063,761202,650722,205930,1077309,823393,1755,1258041,148765,8123,496161,30225,233196,21574,2650249,670206,2144669,85,61989,305818,112955,86611,1388319,251986,1190,1100552,11543,495455,184773,234590,672989,397952,6110094,227267,411632,78259,48503,1517578,1461050,5841306,1413538,216164,508377,45773,34824,995579,116472,2658202,201863,32090,853360,546999,2082673,163203,30453,358221,149138,306149,635981,247542,13051,329700,4161,951890,87152,274627,656769,656172,164392,7116,1)
   )
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