Please login or register to vote for this query.

(click on this box to dismiss)

Motor Vehicle Maintenance and Repair Meta

Q&A about the site for mechanics and DIY enthusiast owners of cars, trucks, and motorcycles

select count(case when posts > 0 then 1 end)
from (
  select u.id as id, count(p.id) as posts
  from users as u
  right join posts as p
  on p.OwnerUserId = u.id
  group by u.id
) q

Enter Parameters

Switch to main site
loading Hold tight while we fetch your results