You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
202 B
MySQL
5 lines
202 B
MySQL
5 years ago
|
/*19. Write a query in SQL to display job title and average salary of employees.*/
|
||
|
SELECT job_title, AVG(salary)
|
||
|
FROM employees
|
||
|
NATURAL JOIN jobs
|
||
|
GROUP BY job_title;
|