ZBRA

0

Please login or register to vote for this query.

(click on this box to dismiss)

Emacs

Q&A for those using, extending or developing Emacs

select u.DisplayName, u.ID,
(select count(*) 
 from PostTypes pt
 join posts p on p.owneruserid=u.id
 where pt.Name = 'Question' and p.owneruserid=u.id) as NbQuestions,
(select count(*)
 from Badges b
 join Users u on u.ID = b.ID
 where u.DisplayName = 'John Snow')
from Users u
where u.DisplayName = 'John Snow'
order by NbQuestions desc

Enter Parameters

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