목록MySQL (42)
ღ yuni_world ღ
📌 문제링크https://school.programmers.co.kr/learn/courses/30/lessons/276035 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr📌 문제풀이select id, email, first_name, last_namefrom developers a join (select sum(code) as code from skillcodes where category = 'Front End') b on a.skill_code & b.code > 0 ## 비트연산order by 1📖 NOTE- skillcodes 테이블에서 'Front En..
📌 문제링크https://school.programmers.co.kr/learn/courses/30/lessons/276036 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr📌 문제풀이withraw1 as ( select (select sum(code) from skillcodes where category = 'Front End') as FE, (select sum(code) from skillcodes where name = 'Python') as P, (select sum(code) from skillcodes where name = 'C#') as C), raw2 as ( sel..
📌 문제링크https://school.programmers.co.kr/learn/courses/30/lessons/284529 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr 📌 문제풀이select a.dept_id, a.dept_name_en, round(avg(sal), 0) as avg_salfrom hr_department a join hr_employees b on a.dept_id = b.dept_idgroup by 1, 2order by 3 desc📖 NOTE- hr_department, hr_employees 두 테이블을 dept_id를 활용하여 조인- dept_id, dept_name_en ..
📌 문제링크https://school.programmers.co.kr/learn/courses/30/lessons/299305 코딩테스트 연습 - 대장균들의 자식의 수 구하기알고리즘 문제 연습 카카오톡 친구해요! 프로그래머스 교육 카카오 채널을 만들었어요. 여기를 눌러, 친구 추가를 해주세요. 신규 교육 과정 소식은 물론 다양한 이벤트 소식을 가장 먼저 알려school.programmers.co.kr 📌 문제풀이withraw1 as ( select a.parent_id, count(b.id) as cnt from ecoli_data a inner join ecoli_data b on a.parent_id = b.id group by 1)select a.id, coalesce(cnt, ..