Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- leetcode
- 편향-분산 교환
- 코딩공부
- mysql
- 깃헙협업
- elastic net
- CSS
- merge
- 클라우드컴퓨팅
- hackerrank
- github
- coding
- 교차 엔트로피
- L1정규화
- PYTHON
- sql
- programmers
- 버전충돌
- L2정규화
- Git
- window function
- 온라인협업
- 선형 모형
- full request
- AWS
- early stopping
- branch
- HTML
- conflict
- RLIKE
Archives
- Today
- Total
Im between cherry
Hackerrank | MySQL | Employee Salaries 본문
Employee Salaries
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 10 months. Sort your result by ascending employee_id.
where employee_id is an employee's ID number, name is their name, months is the total number of months they've been working for the company, and salary is the their monthly salary.
- Solution
SELECT name
FROM employee
WHERE salary > 2000 AND months < 10
ORDER BY employee_id ASC
'데이터분석 > practice_query' 카테고리의 다른 글
Hackerrank | MySQL | Revising Aggregations - The Sum Function (0) | 2020.08.28 |
---|---|
Hackerrank | MySQL | Revising Aggregations - The Count Function (0) | 2020.08.28 |
Hackerrank | MySQL | Employee Names (0) | 2020.08.28 |
Hackerrank | MySQL | Higher Than 75 Marks (0) | 2020.08.28 |
Hackerrank | MySQL | Weather Observation Station 12 (0) | 2020.08.28 |
Comments