Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
25.10.2020, 19:50
|
|||
---|---|---|---|
Помощь с SQL запросами |
|||
#18+
Добрый вечер. Конечно для вас вопрос банальный, но для меня сложный. Есть таблица Employees и в ней поля: Emp_id Fname Lname Job_name Salary Manager_id Department_id Не могу написать SQL запрос по этим трем вопросам: h. Write a SQL query to find the "manager_ID" and the "salary of the lowest-paid employee(s)" under that manager. i. Write a SQL query to get the "department_ID" and the "total salary payable in each department". j. Write a SQL query to get "the average salary" for each job position excluding "Salesman". ... |
|||
:
Нравится:
Не нравится:
|
|||
|
25.10.2020, 20:12
|
|||
---|---|---|---|
|
|||
Помощь с SQL запросами |
|||
#18+
LiQuid, интересно, откуда это? забугорный ресурс и такой примитив ... |
|||
:
Нравится:
Не нравится:
|
|||
|
25.10.2020, 20:15
|
|||
---|---|---|---|
Помощь с SQL запросами |
|||
#18+
i.Write a SQL query to get the "department_ID" and the "total salary payable in each department". Код: sql 1. 2. 3.
j. Write a SQL query to get "the average salary" for each job position excluding "Salesman". Код: sql 1. 2. 3. 4.
... |
|||
:
Нравится:
Не нравится:
|
|||
|
25.10.2020, 20:19
|
|||
---|---|---|---|
|
|||
Помощь с SQL запросами |
|||
#18+
LiQuid, h. Write a SQL query to find the "manager_ID" and the "salary of the lowest-paid employee(s)" under that manager. select Manager_id, min(Salary) as lowest_paid from Employees group by Manager_id i. Write a SQL query to get the "department_ID" and the "total salary payable in each department". select department_ID, sum (Salary) as total from Employees group by department_ID j. Write a SQL query to get "the average salary" for each job position excluding "Salesman" select Job_name, avg(Salary) as average_salary from Employees where Job_name not like '%Salesman%' group by Job_name ... |
|||
:
Нравится:
Не нравится:
|
|||
|
|
start [/forum/topic.php?fid=46&tablet=1&tid=1685499]: |
0ms |
get settings: |
10ms |
get forum list: |
15ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
35ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
45ms |
get tp. blocked users: |
2ms |
others: | 13ms |
total: | 141ms |
0 / 0 |