일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- terraform
- dsf
- 그리디
- 데이터 엔지니어
- delete join
- 프로그래머스
- MySQL
- 빅데이터를 지탱하는 기술
- Pseudo Lab
- 2023년 목표
- 알고리즘
- datacamp
- SQL
- Spark
- docker container
- leetcode
- Airflow
- data_engineer
- hackerrank
- 백준 온라인 저지
- BOT
- airflow webserver
- 백준온라인저지
- Data Engineering
- docker image
- docker
- telegram
- Dynamic Programming
- Python
- airflow architecture
Archives
- Today
- Total
Lim Seunghyun Space
[HackerRank] Employee Salaries 본문
문제 : https://www.hackerrank.com/challenges/salary-of-employees/problem?isFullScreen=true
Employee Salaries | HackerRank
Print the names of employees who earn more than $2000 per month and have worked at the company for less than 10 months.
www.hackerrank.com
문제 해설
- Employee 테이블에서 10개월 미만 근무자 중 salary가 2000보다 큰 name을 조회
- 결과는 employee_id를 오른차순으로 정렬한 결과
나의 풀이 (MySQL)
SELECT name
FROM Employee
WHERE salary > 2000 and months < 10
ORDER BY employee_id;
728x90
'SQL > SQL 문제' 카테고리의 다른 글
[HackerRank] Type of Triangle (0) | 2021.11.30 |
---|---|
[HackerRank] The PADS (0) | 2021.11.29 |
[HackerRank] Employee Names (0) | 2021.11.22 |
[HackerRank] Weather Observation Station 12 (0) | 2021.11.21 |
[HackerRank] Weather Observation Station 11 (0) | 2021.11.21 |