ソースコード
select
    HOUSEHOLD.CLASS_NAME as CLASS,
    PERSON_NAME as PERSON,
    HOUSEHOLD.AMT as HOUSEHOLD
    
from
    HOUSEHOLD
inner join (
    select
        class_name,
        max(amt) as HOUSEHOLDS
    from
        HOUSEHOLD
    where
        PERSON_CODE != "1"
        and CLASS_CODE != "01"
    group by
        class_name
) as a
on
    HOUSEHOLD.AMT = a.HOUSEHOLDS
    and HOUSEHOLD.class_name = a.class_name
order by
    cast(CLASS_CODE as int64) asc
提出情報
提出日時2022/10/19 22:17:37
コンテスト第3回 SQLコンテスト
問題最大世帯人員
受験者koya_346
状態 (詳細)WA
(Wrong Answer: 誤答)
メモリ使用量96 MB
メッセージ
テストケース(通過数/総数)
0/2
状態
メモリ使用量
データパターン1
WA
93 MB
データパターン2
WA
96 MB