일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- node.js
- select
- array
- Developer_JoyKim
- array.push()
- 코딩테스트
- 개발자_조이킴
- for문
- 개발자의 책장
- 프로그래머스
- 자바스크립트
- MySQL
- Programmers
- 알고리즘
- 정규표현식
- 역행자
- SQL
- array.slice()
- Hackerrank
- 배열
- 코드스테이츠
- 블록체인
- join
- 최강의 인생
- 코플릿
- JavaScript
- Where
- Algorithms
- 재귀함수
- 코딩공부
Archives
- Today
- Total
CodingSpace
[HackerRank/SQL] Basic SELECT - Employee Salaries 본문
Problem. Basic SELECT - Employee Salaries
Link.
https://www.hackerrank.com/challenges/salary-of-employees/problem?isFullScreen=true
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
Description.
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.
Sort your result by ascending employee_id.
Key Point.
SELECT,
WHERE,
My Answer.
SELECT E.name
FROM Employee E
WHERE E.salary > 2000 AND E.months < 10;
References.
'HackerRank > SQL' 카테고리의 다른 글
[HackerRank/SQL] Revising Aggregations - The Sum Function (0) | 2022.07.10 |
---|---|
[HackerRank/SQL] Revising Aggregations - The Count Function (0) | 2022.07.05 |
[HackerRank/SQL] Basic Join - The Report (0) | 2022.06.27 |
[HackerRank/SQL] Basic Join - Average Population of Each Continent (0) | 2022.06.08 |
[HackerRank/SQL] Basic Join - Population Census (0) | 2022.05.26 |
Comments