문제
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:
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
Sample Output
Angela
Bonnie
Frank
Joe
Kimberly
Lisa
Michael
Patrick
Rose
Todd
풀이
select name from employee order by name;
'algorithm' 카테고리의 다른 글
[HackerRank] MySQL - Employee Salaries (0) | 2022.09.29 |
---|---|
[programmers] MySQL - Lv.4 보호소에서 중성화한 동물 (join) (0) | 2022.09.29 |
[programmers] MySQL - Lv.3 헤비 유저가 소유한 장소 (0) | 2022.09.28 |
[HackerRank] MySQL - Higher Than 75 Marks (0) | 2022.09.27 |
[programmers] MySQL - Lv.3 없어진 기록 찾기 (join) (0) | 2022.09.27 |