Skip to content

Commit b0f2054

Browse files
committed
task 19
1 parent 1fa7d2b commit b0f2054

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

tasks/19.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,36 @@
1-
###
1+
### Имена сотрудников - [Employee Names]
22

33
<img src="./art/19.png" alt="solution" >
44

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

8+
Input Format
9+
The Employee table containing employee data for a company is described as follows:
10+
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.
711

812

913
#### рус:
14+
Напишите запрос, который выводит список имен сотрудников (т.е. атрибут name)
15+
из таблицы Employee в алфавитном порядке.
1016

17+
Формат ввода
18+
Таблица Employee, содержащая данные о сотрудниках компании, описывается следующим образом:
19+
где employee_id — идентификационный номер сотрудника, name — его имя, month — общее количество месяцев, в течение которых он проработал в компании, а зарплата — его месячная зарплата.
1120

1221

1322
#### код с коментариями:
1423
```sql
15-
24+
SELECT NAME /* выбрать данные столбца */
25+
FROM Employee /* из таблицы */
26+
ORDER BY NAME /* отсортировать по имени */
1627
```
1728

1829
#### код для hackerrank:
1930
```sql
20-
31+
SELECT NAME
32+
FROM Employee
33+
ORDER BY NAME
2134
```
2235

2336

tasks/19.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SELECT NAME
2+
FROM Employee
3+
ORDER BY NAME

tasks/art/19.png

62.3 KB
Loading

0 commit comments

Comments
 (0)