Java Count (test query)


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for Bitcoin crypto-currency enthusiasts

select Month = X.Month, Count = CAST(count(*) AS decimal(10, 5)) from
  select CAST(
      cast(DATEPART(YYYY, CreationDate) as varchar) + '-' + 
      cast(DATEPART(MM, CreationDate) as varchar) + '-01'
    as date) Month, 
  from  Posts p
  join PostTags pt on pt.PostId = p.Id
  join Tags t on t.Id = pt.TagId
  where t.TagName = 'java'
) as X
group by Month

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results