728x90
❓ Question
https://www.hackerrank.com/challenges/salary-of-employees
❗ Answer
SELECT name
FROM employee
WHERE salary > 2000 AND months < 10
ORDER BY employee_id;
📌 Discussion
- WHERE 에서 salary와 months에서 두가지 조건을 걸어줌
'SQL 문제풀이' 카테고리의 다른 글
[해커랭크 SQL] Advanced Select - The PADS (0) | 2023.08.22 |
---|---|
[해커랭크 SQL] Advanced Select - Type of Triangle (0) | 2023.08.18 |
[해커랭크 SQL] Basic Select - Employee Names (0) | 2023.08.18 |
[해커랭크 SQL] Basic Select - Higher Than 75 Marks (0) | 2023.08.18 |
[해커랭크 SQL] Basic Select - Weather Observation Station 12 (0) | 2023.08.18 |