SELECT top 100 p.Id AS [Post Link], p.Title, DATEDIFF(MON...

0

Please login or register to vote for this query.

(click on this box to dismiss)

SharePoint

Q&A for SharePoint enthusiasts

SELECT
top 100
    p.Id AS [Post Link],
    p.Title,
    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';

Enter Parameters

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