새소식

IT/SQL

[해커랭크] Employee Names

  • -
728x90
반응형

문제링크 : https://www.hackerrank.com/challenges/name-of-employees/problem?isFullScreen=true

 

Write a query that prints a list of employee names (i.e.: the name attribute) from the Employee table in alphabetical order.

(name을 Employee 테이블에서 뽑아라. 알파벳 순서대로.)

 

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

 

SELECT name
FROM Employee
ORDER BY name

 


 알파벳순 = 오름차순

728x90

'IT > SQL' 카테고리의 다른 글

[해커랭크] Type of Triangle  (0) 2023.03.22
[해커랭크] Employee Salaries  (0) 2023.03.21
[해커랭크] Higher Than 75 Marks  (0) 2023.03.21
[해커랭크] Weather Observation Station 12  (0) 2023.03.21
[해커랭크] Weather Observation Station 11  (0) 2023.03.21
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.