Closed vs includes code

0

Please login or register to vote for this query.

(click on this box to dismiss)

Poker Meta

Q&A about the site for serious players and enthusiasts of poker

select case when closeddate is not null then 'yes'
            else 'no' end as closed
     , case when body like '%<code>%' then 'yes'
            else 'no' end as IncludesCode
     , count(*) as Count
  from posts
 where posttypeid = 1
   and creationdate > ( select max(creationdate)
                           from posts ) - 30
 group by case when closeddate is not null then 'yes'
               else 'no' end
        , case when body like '%<code>%' then 'yes'
               else 'no' end
 order by case when closeddate is not null then 'yes'
               else 'no' end

Enter Parameters

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