Q&A for gardeners and landscapers
--select top 10 * from posts answer --inner join posts question --on answer.parentid = question.id and question.parentid is not null --and answer.posttypeid = 2 --and ps.AcceptedAnswerId is not null --where posttypeid = 2 select top 10 parentid from posts where id in ( SELECT a.parentid FROM posts a inner join posts question on a.parentid = question.id where a.posttypeid = 2 and a.parentid is not null ) and AcceptedAnswerId is not null