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 *   FROM posts
where id = 20407276
SELECT *   FROM posts
where parentid = 20407276*/
select datepart(year,creationdate) Years, count(*) notAnswered  from posts 
where id not in (SELECT distinct parentid  FROM posts
where posttypeid = 2 and parentid is not null 
) and posttypeid = 1
group by datepart(year,creationdate)

Enter Parameters

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