COMMENT

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 CommentBatch AS (
    SELECT
        c.Id AS CommentId,
        c.Text,
        p.Title,
        p.OwnerUserId AS UserId,
        u.DisplayName,
        u.Location,
        t.TagName,
        ROW_NUMBER() OVER (PARTITION BY p.Id ORDER BY c.CreationDate DESC) AS CommentRowNum
    FROM Comments c
    INNER JOIN Posts p ON c.PostId = p.Id
    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 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
    cb.CommentId,
    cb.Title AS CommentTitle,
    cb.Text AS CommentText,
    cb.UserId,
    cb.DisplayName AS UserName,
    cb.Location AS UserCountry,
    cb.TagName AS CommentTag
FROM CommentBatch cb
WHERE cb.CommentRowNum BETWEEN 1 AND 500;

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results