[프로그래머스] Python 개발자 찾기

J. Hwang·2025년 5월 4일

SQL practice

목록 보기
12/18

문제

DEVELOPER_INFOS 테이블에서 Python 스킬을 가진 개발자의 정보를 조회하려 합니다. Python 스킬을 가진 개발자의 ID, 이메일, 이름, 성을 조회하는 SQL 문을 작성해 주세요.

결과는 ID를 기준으로 오름차순 정렬해 주세요.

Input table

DEVELOPER_INFOS

IDFIRST_NAMELAST_NAMEEMAILSKILL_1SKILL_2SKILL_3
D165JeramiEdwardsjerami_edwards@grepp.coJavaJavaScriptPython
D161CarsenGarzacarsen_garza@grepp.coReact
.....................

Output table

IDEMAILFIRST_NAMELAST_NAME
D162cade_cunningham@grepp.coCadeCunningham
D165jerami_edwards@grepp.coJeramiEdwards

내 풀이

MySQL

SELECT ID, EMAIL, FIRST_NAME, LAST_NAME
FROM DEVELOPER_INFOS
WHERE SKILL_1 = 'Python' or SKILL_2 = 'Python' or SKILL_3 = 'Python'
ORDER BY ID ASC;

코멘트

Chain-of-thought

  1. WHERE 절로 조건 제한 (SKILL 중 Python 있는 사람 찾기)
  2. ORDER BY로 ID를 오름차순 정렬

태그

SELECT Level 1


References

https://school.programmers.co.kr/learn/challenges?tab=sql_practice_kit

profile
Let it code

0개의 댓글