일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- algorithm
- sort
- hash
- 파이썬
- 딥러닝
- FullyConnectedLayer
- DeepLearning
- stak
- Sigmoid
- boj
- backward
- 프로그래머스
- Numpy
- PPMI
- dl
- Word2vec
- Heap
- Python
- kakao
- Stack
- Programmers
- select
- CBOW
- affine
- 자연어처리
- skip-gram
- SQL
- MySQL
- 신경망
- que
Archives
- Today
- Total
혜온의 이것저것
[HackerRank] Employee Names (MySQL) 본문
https://www.hackerrank.com/challenges/name-of-employees/problem?isFullScreen=true
Employee Names | HackerRank
Print employee names.
www.hackerrank.com
문제
Write a query that prints a list of employee names (i.e.: the name attribute) from the Employee table in alphabetical order.
Input Format
The Employee table containing employee data for a company is described as follows:
![](https://blog.kakaocdn.net/dn/bc5cmv/btrJfo5ep4X/iGahmT4keUUA6K9FZXlXu1/img.png)
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 their monthly salary.
Sample Input
![](https://blog.kakaocdn.net/dn/cZk50W/btrJillTGjy/sH9bVom3JhXGzUbPWyvBNK/img.png)
Sample Output
Angela
Bonnie
Frank
Joe
Kimberly
Lisa
Michael
Patrick
Rose
Todd
풀이
select name from employee order by name
'Data Analysis > SQL' 카테고리의 다른 글
[HackerRank] Type of Triangle (MySQL) (0) | 2022.08.10 |
---|---|
[HackerRank] Employee Salaries (MySQL) (0) | 2022.08.09 |
[HackerRank] Higher Than 75 Marks (MySQL) (0) | 2022.08.09 |
[HackerRank] Weather Observation Station 12 (MySQL) (0) | 2022.08.09 |
[HackerRank] Weather Observation Station 11 (MySQL) (0) | 2022.08.09 |
Comments