ソースコード
SELECT A.EMP_CODE AS CODE,
replace(A.EMP_LAST_NAME,"","") AS SURNAME,
replace(A.EMP_FIRST_NAME,"","") AS NAME FROM EMP AS A WHERE A.VALID_FLG == 1 AND EXISTS (SELECT * FROM EMP AS B WHERE A.EMP_CODE != B.EMP_CODE AND replace(A.EMP_LAST_NAME," ","") == replace(B.EMP_LAST_NAME," ","") AND replace(A.EMP_FIRST_NAME," ","") == replace(B.EMP_FIRST_NAME," ","") AND B.VALID_FLG = 1) ORDER BY  replace(A.EMP_LAST_NAME," ",""),replace(A.EMP_FIRST_NAME," ",""),EMP_CODE;
提出情報
提出日時2023/02/19 09:14:02
コンテスト第5回 SQLコンテスト
問題同姓同名抽出
受験者hiikunZ
状態 (詳細)AC
(Accepted: 正答)
メモリ使用量79 MB
メッセージ
テストケース(通過数/総数)
3/3
状態
メモリ使用量
データパターン1
AC
79 MB
データパターン2
AC
79 MB
データパターン3
AC
78 MB