Testing

0

Please login or register to vote for this query.

(click on this box to dismiss)

Joomla Meta

Q&A about the site for Joomla! administrators, users, developers and designers

--SELECT top 10 *  FROM comments-- where userdisplayName = 'Guffa'
--select top 10 * from posts where ParentId = 20407276 --and posttypeid = 2 
--select * from users where id = 534124  
--select * from posttypes

--SELECT datepart(year,creationdate) Years, count(*) Users FROM users
--group by datepart(year,creationdate)


select datepart(year,creationdate) Years, parentId, count(*) NotAnswered from posts 
where ParentId not in (SELECT id  FROM posts
where posttypeid = 1
) 
and posttypeid = 2
group by datepart(year,creationdate), parentId

Enter Parameters

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