Display the total number of dependents for each employee for employees who have at least two dependents.

Write queries for the following. (Use tables created in Chapter 4 Lab Activity.)

```
SQL> SELECT EmployeeId, COUNT(*)
2 FROM dependent
3 GROUP BY EmployeeId
4 HAVING COUNT(*) >= 2;

EMPLOYEEID COUNT(*)
---------- ----------
222 3
543 2
```

Computer Science & Information Technology

You might also like to view...

Match each of the following Microsoft programs to their descriptions:

I. File Explorer II. Edge III. Snipping Tool IV. Defender V. Firewall A. program which can capture an image B. web browser program that is included with Windows 10 C. displays the contents of folders and files on a computer and on connected locations D. built in protection to help prevent harmful or unwanted software from being installed on a computer E. built in protection to help prevent hackers or malicious software from gaining access to a computer

Computer Science & Information Technology

These can be used as visual guides when drawing a table

a. Leader lines b. Rulers c. Measuring guides

Computer Science & Information Technology