🤔 문제 분석
1) Write a query that prints a list of employee names (i.e.: the name attribute) for employees in Employee having a salary greater than per month who have been employees for less than months.
2) Sort your result by ascending employee_id.
💡 풀이
SELECT name
FROM Employee
WHERE months < 10
AND salary > 2000
ORDER BY employee_id
'코딩테스트 > 해커랭크 SQL' 카테고리의 다른 글
[해커랭크/SQL] 23. Revising Aggregations - The Sum Function (0) | 2023.03.06 |
---|---|
[해커랭크/SQL] 22. Revising Aggregations - The Count Function (0) | 2023.03.06 |
[해커랭크/SQL] 19. Employee Names (0) | 2023.02.22 |
[해커랭크/SQL] 18. Higher Than 75 Marks (0) | 2023.02.22 |
[해커랭크/SQL] 17. Weather Observation Station 12 (REGEXP) (0) | 2023.02.21 |
댓글