ソースコード

with DS as (select Date('2022-08-01', '+' || x || ' day') as DT
            from (select 0 as x
                  union all
                  select 1 as x
                  union all
                  select 2 as x
                  union all
                  select 3 as x
                  union all
                  select 4 as x
                  union all
                  select 5 as x
                  union all
                  select 6 as x
                  union all
                  select 7 as x
                  union all
                  select 8 as x
                  union all
                  select 9 as x
                  union all
                  select 10 as x
                  union all
                  select 11 as x
                  union all
                  select 12 as x
                  union all
                  select 13 as x
                  union all
                  select 14 as x
                  union all
                  select 15 as x
                  union all
                  select 16 as x
                  union all
                  select 17 as x
                  union all
                  select 18 as x
                  union all
                  select 19 as x
                  union all
                  select 20 as x
                  union all
                  select 21 as x
                  union all
                  select 22 as x
                  union all
                  select 23 as x
                  union all
                  select 24 as x
                  union all
                  select 25 as x
                  union all
                  select 26 as x
                  union all
                  select 27 as x
                  union all
                  select 28 as x
                  union all
                  select 29 as x
                  union all
                  select 30 as x))
select DS.DT as REGIST_DATE, coalesce(count(users.USER_CODE), 0) as TOTAL
from DS
         left outer join USERS on DATE(USERS.CONFIRMED_AT) = DS.DT and users.VALID_FLG = '1'
group by DS.DT
order by 1;
提出情報
提出日時2023/04/16 13:35:23
コンテスト第4回 SQLコンテスト
問題登録人数の日別集計
受験者tamurakami
状態 (詳細)WA
(Wrong Answer: 誤答)
メモリ使用量84 MB
メッセージ
テストケース(通過数/総数)
0/4
状態
メモリ使用量
データパターン1
WA
76 MB
データパターン2
WA
76 MB
データパターン3
WA
84 MB
データパターン4
WA
83 MB