select (select count(u.Id) as NoPosts from Users u left j...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Reverse Engineering Meta

Q&A about the site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation

select (select count(u.Id) as NoPosts
  from Users u
  left join Posts p on u.Id = p.OwnerUserID
  where p.Id is Null)/ count(u.Id) as AllPosts
from Users u
left join Posts p on u.ID = p.OwnerUserID

Enter Parameters

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