Testing

0

Please login or register to vote for this query.

(click on this box to dismiss)

Sports

Q&A for participants in team and individual sport activities

/*
select datepart(year,creationdate) Years,OwnerUserId, count(OwnerUserId) 
NoOfQuestionPost
from Posts where OwnerUserId in 
(SELECT  Id  FROM users
where datepart(year,creationdate) = 2008)
and posttypeid = 1 and datepart(year,creationdate) < 2019
group by datepart(year,creationdate), OwnerUserId 
having count(*) >5
order by datepart(year,creationdate), OwnerUserId
*/

select datepart(year,creationdate) Years, count(*) PostedAnswersOf2012UsersYearly
from Posts where OwnerUserId in 
(SELECT  Id  FROM users
where datepart(year,creationdate) = 2012)
and posttypeid = 2 and datepart(year,creationdate) between 2012 and 2018
group by datepart(year,creationdate) 
having count(*) >5

Enter Parameters

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