[Programmers_SQL] 23. Python 개발자 찾기

문정준's avatar
Mar 18, 2025
[Programmers_SQL] 23. Python 개발자 찾기
 
💡
프로그래머스 SELECT 22. Python 개발자 찾기

1. 문제 설명

notion image

2. 문제

notion image

3. 예시

notion image

4. 문제 풀이

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;
  • 1 Line : id, email. first_name, last_name 출력
    • SELECT id, email, first_name, last_name
  • 2 Line : DEVELOPER_INFOS 테이블을 참조
    • from DEVELOPER_INFOS
  • 3 Line : 스킬 중 ‘Python’이 있는 데이터만 출력
    • skill_1, skill_2, skill_3을 전부 비교해야 함
    • where skill_1 = ‘Python’ or skill_2 = ‘Python’ or skill_3 = ‘Python’
  • 4 Line : id를 기준으로 오름차순 정렬
    • order by id;

5. 결과 확인

notion image
notion image
notion image
 
 
Share article

sxias