본문 바로가기
DB/SQL

Employee Salaries

by _S0_H2_ 2020. 6. 19.
728x90
반응형

문제 : Write a query that prints a list of employee names (i.e.: the name attribute) for employees in Employee having a salary greater than 2000 per month who have been employees for less than months. Sort your result by ascending employee_id.

 

SELECT name
FROM Employee
WHERE months < 10 and salary > 2000
ORDER BY employee_id asc;
Rose Patrick Lisa Amy Pamela Jennifer Julia Kevin Paul Donna Michelle Christina Brandon Joseph Jesse Paula Louise Evelyn Emily Jonathan Nancy Benjamin Roy Diana Christine

 

728x90
반응형

'DB > SQL' 카테고리의 다른 글

Type of Triangle  (0) 2020.06.19
Employee Names  (0) 2020.06.19
Higher Than 75 Marks  (0) 2020.06.19
HackerRank_16. Weather Observation Station 10  (0) 2020.06.12
HackerRank_15. Weather Observation Station 9  (0) 2020.06.11