with a as ( select * from posts where PostTypeId = 2 ), ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Sustainable Living

Q&A for folks dedicated to a lifestyle that can be maintained indefinitely without depleting available resources

-- Enter Query Title
-- Enter Query Description

with
a as (
  select * from posts where PostTypeId = 2
),
q as (
  select * from posts where POstTypeId = 1
)

select top 25
  count(a.Id) as [Answer Count],
  q.Id as [Post Link]
from q, a
where
   q.Id = a.ParentId
group by q.Id
order by [Answer Count];

Enter Parameters

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