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 |
Tags
- mysql
- L1정규화
- window function
- 온라인협업
- HTML
- sql
- 코딩공부
- AWS
- elastic net
- PYTHON
- early stopping
- 선형 모형
- github
- full request
- 클라우드컴퓨팅
- programmers
- CSS
- L2정규화
- hackerrank
- 깃헙협업
- Git
- 버전충돌
- 편향-분산 교환
- leetcode
- conflict
- RLIKE
- merge
- branch
- coding
- 교차 엔트로피
Archives
- Today
- Total
Im between cherry
Hackerrank | MySQL | Employee Salaries 본문
Employee Salaries
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
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