Q&A for expert programmers interested in professional discussions on software development
select Closevotes, count(*) from ( select (select count(*) from votes where postid = posts.id and votetypeid = 6) as [CloseVotes], * from posts where posttypeid = 1 and not closeddate is null ) as t group by Closevotes order by closevotes
Error: looks like you typed in the wrong words - try again