RavenDB over time

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select count(*), str(year) + '/' + str(month) from (
SELECT
datepart(month, Posts.CreationDate) as Month, datepart(year, Posts.CreationDate) as Year
FROM PostTags
    INNER JOIN Tags on PostTags.TagId = Tags.Id
    INNER JOIN Posts on PostTags.PostId = Posts.Id
WHERE Tags.TagName = 'ravendb'
) as Data
group by year, month
order by year, month

Enter Parameters

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