select distinct p.OwnerUserId, count(DATEPART(month, p.cr...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Network Engineering

Q&A for network engineers

select distinct
  p.OwnerUserId,
  count(DATEPART(month, p.creationdate)) as Month,
  DATEPART(year, p.creationdate) as Year
  from posts p 
  where p.OwnerUserId = 5295 AND DATEPART(year, p.creationdate) >= 2010 AND DATEPART(year, p.creationdate) <= 2020
  group by p.OwnerUserId, DATEPART(year, p.creationdate)
  order by DATEPART(year, p.creationdate)

Enter Parameters

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