Don't touch my junk.

0

Please login or register to vote for this query.

(click on this box to dismiss)

スタック・オーバーフローMeta

プログラマーと熱狂的なプログラマーのためのサイトに関する質問と回答

with data as (
    select posttypeid, case when closeddate is null then 'open' else 'closed' end as status
    from Posts
)
select posttypeid, status, count(*)
from data
group by posttypeid, status

Enter Parameters

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