Asking record

6

Please login or register to vote for this query.

(click on this box to dismiss)

Windows Phone Meta

Q&A about the site for enthusiasts and power users of Windows Phone OS

with questions_asked as (
  select OwnerUserId,
         case when Score < 0 then 1 end negative,
         case when ClosedDate is not null then 1 end closed,
         1 total
  from Posts
  where OwnerUserId in (##UseIds##)
        and PostTypeId = 2
)

select OwnerUserId as [User Link],
       sum(negative),
       sum(closed),
       sum(total)
from questions_asked
group by OwnerUserId

Enter Parameters

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