Compare Firebase tag question volume over time

2

Please login or register to vote for this query.

(click on this box to dismiss)

Philosophy Meta

Q&A about the site for those interested in the study of the fundamental nature of knowledge, reality, and existence

create table #tags (Date date, TagName nvarchar (35), Count int);

insert into #tags 

select 
DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) AS [MONTH],
t.TagName,
count(*) as Count
from Posts p
join PostTags pt on pt.PostId = p.Id
join Tags t on t.Id = pt.TagId 
where 
p.CreationDate > '2016-01-01'
AND
(t.TagName like 'firebase-%' or t.TagName = 'google-cloud-functions' or t.TagName = 'google-cloud-firestore')
group by t.TagName,
         DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0)
order by [MONTH] desc;


select * from #tags 
where TagName in
(
select TOP 10 TagName from #tags where Date in (
select TOP 10 Date from #tags order by Date desc
) order by Count desc
)
order by [Date] desc;

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results