Sure! Here's a MySQL query question for you: Consider a table named employees with the following columns:
Fantastic news! We've Found the answer you've been seeking!
Question:
Sure! Here's a MySQL query question for you:
Consider a table named employees
with the following columns:
employee_id
(Primary Key)first_name
last_name
department
salary
Write a SQL query to find the average salary for each department, along with the total number of employees in each department. Sort the result by the average salary in descending order.
Related Book For
Concepts of Database Management
ISBN: 978-1285427102
8th edition
Authors: Philip J. Pratt, Mary Z. Last
Posted Date: