SQL Activity 2 hands on
SQL Activity 2 hands on
BSIT 2A-WMAD
1. 1. Write a query to find the total number of employees in the 'HR' and 'IT' departments
combined.
2. Write a query to display names of employees earning more than the average salary.
4. Write a query to count how many employees were hired before the year 2020.
The WHERE clause is used to filter individual rows before any grouping is done, while
the HAVING clause is used to filter groups of rows after they have been grouped using
GROUP BY.