AdventureWorks Database: Find the total number of employees
SQL Query - AdventureWorks: Exercise-91 with Solution
91. From the following table write a query in SQL to find the total number of employees.
Sample table: HumanResources.Employee
Sample Solution:
SELECT COUNT(*) as "Number of Employees"
FROM HumanResources.Employee;
Sample Output:
Number of Employees| -------------------+ 290|
SQL AdventureWorks Editor:
Practice Online
Contribute your code and comments through Disqus.
Previous: Find number of unique titles that employees can hold.
Next: Find average bonus for salespersons achieved quota above 25000.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
- Weekly Trends
- Python Interview Questions and Answers: Comprehensive Guide
- Scala Exercises, Practice, Solution
- Kotlin Exercises practice with solution
- MongoDB Exercises, Practice, Solution
- SQL Exercises, Practice, Solution - JOINS
- Java Basic Programming Exercises
- SQL Subqueries
- Adventureworks Database Exercises
- C# Sharp Basic Exercises
- SQL COUNT() with distinct
- JavaScript String Exercises
- JavaScript HTML Form Validation
- Java Collection Exercises
- SQL COUNT() function
- SQL Inner Join