ソースコード
SELECT
  EMP_CODE AS CODE,
  EMP.EMP_LAST_NAME AS SURNAME,
  EMP.EMP_FIRST_NAME AS NAME
FROM
  EMP 
INNER JOIN(
    SELECT
      EMP_LAST_NAME,
      EMP_FIRST_NAME,
      COUNT(*) AS CNT
    FROM
      EMP
    WHERE EMP.VALID_FLG = '1'
    GROUP BY
      REPLACE(EMP_LAST_NAME," ",""),
      REPLACE(EMP_FIRST_NAME," ","")
    HAVING COUNT(*) > 1
      )a
ON REPLACE(EMP.EMP_LAST_NAME," ","") = REPLACE(a.EMP_LAST_NAME," ","")
AND REPLACE(EMP.EMP_FIRST_NAME," ","") = REPLACE(a.EMP_FIRST_NAME," ","")
ORDER BY REPLACE(EMP.EMP_LAST_NAME," ","") || REPLACE(EMP.EMP_FIRST_NAME," ",""),
         EMP_CODE
提出情報
提出日時2023/02/19 23:44:23
コンテスト第5回 SQLコンテスト
問題同姓同名抽出
受験者a
状態 (詳細)WA
(Wrong Answer: 誤答)
メモリ使用量96 MB
メッセージ
テストケース(通過数/総数)
1/3
状態
メモリ使用量
データパターン1
AC
77 MB
データパターン2
WA
81 MB
データパターン3
WA
96 MB