SELECT p.Id AS [Post Link], p.Title, p.CreationDate, DATE...

0

Please login or register to vote for this query.

(click on this box to dismiss)

SharePoint

Q&A for SharePoint enthusiasts

SELECT
    p.Id AS [Post Link],
    p.Title,
    p.CreationDate,
    DATEDIFF(MONTH, p.CreationDate, GETDATE()) AS AgeInMonths
FROM
    Posts p
JOIN
    PostTags pt ON p.Id = pt.PostId
JOIN
    Tags t ON pt.TagId = t.Id
WHERE
    t.TagName = 'java'
    AND p.PostTypeId = 1
    and p.ViewCount > 100000;

Enter Parameters

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