|
Помощь с 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, 19:50 |
|
Помощь с SQL запросами
|
|||
---|---|---|---|
#18+
LiQuid, интересно, откуда это? забугорный ресурс и такой примитив ... |
|||
:
Нравится:
Не нравится:
|
|||
25.10.2020, 20:12 |
|
Помощь с 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:15 |
|
Помощь с 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 ... |
|||
:
Нравится:
Не нравится:
|
|||
25.10.2020, 20:19 |
|
|
start [/forum/topic.php?fid=46&msg=40011720&tid=1685499]: |
0ms |
get settings: |
8ms |
get forum list: |
15ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
65ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
50ms |
get tp. blocked users: |
2ms |
others: | 288ms |
total: | 452ms |
0 / 0 |