[Solved] SQLqueries

$25

File Name: SQLqueries.zip
File Size: 94.2 KB

SKU: [Solved] SQLqueries Category: Tag:
5/5 - (1 vote)
  1. Make a T-SQL statement that will count all employees in the Employees table.
  2. Modify the query you wrote in the previous step to only show the count of Employees with a Column header of Employee Count.
  3. Make a T-SQL statement using GROUP BY to display the employee count from each department. The display is to be the Department Name followed by the Employee Count. Use those as the column headers.
  4. Modify the query from the previous step to include a HAVING clause that will return rows where the Department Employee count is greater than three.
  5. Make a T-SQL statement using GROUP BY to display the average employee salary for each department. The display is to be the Department Name followed by the Employee Annual Salary Average. Use those as the column headers.
  6. Make a T-SQL statement using GROUP BY to display the maximum and minimum employee salary for each department. The display is to be the Department Name followed by the Maximum Employee Annual Salary and then the Minimum Employee Annual Salary. Use those as the column headers.
  7. Make a T-SQL query to show the average annual salary for all employees (even those without a department).
  8. Make a T-SQL query to show the maximum annual salary for all employees (even those without a department).
  9. Make a T-SQL query to show the minimum annual salary for all employees (even those without a department).
  10. Demonstrate the use of a subquery.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] SQLqueries
$25