Number of Posts in 2017

0

Please login or register to vote for this query.

(click on this box to dismiss)

Emacs

Q&A for those using, extending or developing Emacs

DECLARE @delimiter nvarchar(255) = '>';

--SELECT Id, CreationDate, value
--FROM Posts
--CROSS APPLY STRING_SPLIT(Tags, @delimiter) AS Sep
--WHERE YEAR(CreationDate) = 2017
--ORDER BY Id



SELECT a.Id,
        a.CreationDate,
        a.Tags,
        b.*
FROM Posts AS a
INNER JOIN Tags AS b
ON a.Tags LIKE '%' + '<' + b.TagName + '>' +'%'
WHERE YEAR(a.CreationDate) = 2017


SELECT DISTINCT b.*
FROM Posts AS a
INNER JOIN Tags AS b
ON a.Tags LIKE '%' + '<' + b.TagName + '>' +'%'
WHERE YEAR(a.CreationDate) = 2017

Enter Parameters

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