SQL

[해커랭크] Employee Salaries

주스 JUICE 2023. 7. 12. 18:37
728x90

https://www.hackerrank.com/challenges/salary-of-employees/problem?isFullScreen=true&h_r=next-challenge&h_v=zen 

 

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

 

months가 10개월 미만이고, salary가 2000 초과인 것을 모두 충족해야 하므로 where절에 and

select name
from employee
where months < 10 and salary > 2000
order by employee_id asc
728x90

'SQL' 카테고리의 다른 글

[해커랭크] Weather Observation Station 15  (0) 2023.07.12
[해커랭크] Weather Observation Station 14  (0) 2023.07.12
230711 공부  (0) 2023.07.11
[해커랭크] Employee Names  (0) 2023.07.11
[해커랭크] Higher Than 75 Marks  (0) 2023.07.11