SELECT count(*) FROM (SELECT * FROM POSTS WHERE PostType...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Physical Fitness Meta

Q&A about the site for physical fitness professionals, athletes, trainers, and those providing health-related needs

-- Enter Query Title
-- Enter Query Description

SELECT count(*)
FROM (SELECT * FROM POSTS WHERE PostTypeID = 1) AS q
JOIN (SELECT * FROM POSTS WHERE PostTypeID = 2) AS a
ON a.parentID = q.id

Enter Parameters

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