차근차근/SQL

[hackerrank] Employee Names

예쁜꽃이피었으면 2022. 8. 9. 09:38

[hackerrank] Prepare > SQL > Basic Select >  Employee Names

 

[문제]

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

 

[MYSQL]

 

 

[ORCALE]

select name
from Employee
order by name asc;

 

 

 

반응형

'차근차근 > SQL' 카테고리의 다른 글

[hackerrank] Occupations  (0) 2022.08.18
mysql 8 / mysql5 외부접속  (0) 2018.05.18
mysql 데이터 베이스 생성  (0) 2018.02.08
mysql 한글 깨질 때  (0) 2017.10.16
Found option without preceding group in config file  (0) 2017.06.13