Use multiple level subquery to display dependent information for employees, who belong to FINANCE department.

Use the N2 Corporation database tables to design the following subqueries. (Use the spooling method to capture all queries and results in the CHAP8SP1.LST file.)


```
SQL> SELECT *
2 FROM dependent
3 WHERE EmployeeId IN
4 (SELECT EmployeeId
5 FROM employee
6 WHERE DeptId =
7 (SELECT DeptId
8 FROM dept
9 WHERE UPPER(DeptName) = 'FINANCE'));

EMPLOYEEID DEPENDENTID DEPDOB RELATION
---------- ----------- --------- --------
222 1 04-FEB-75 Spouse
222 2 23-AUG-97 Son
222 3 10-JUL-99 Daughter
111 1 12-DEC-45 Spouse
```

Computer Science & Information Technology

You might also like to view...

The ____ review entails a detailed examination of the events that occurred from first detection to final recovery.

A. after-action B. incident classification C. desk check D. structured walk-through

Computer Science & Information Technology

If you cannot test the user interface with an actual person, then you should not let anyone use it until you are able to test it

Indicate whether the statement is true or false

Computer Science & Information Technology

Identify a true statement about modifying queries in Microsoft Access 2016.?

A. ?A field's values cannot be hidden in the query results. B. ?A field is not removed from the query design by hiding the field value. C. ?The order of the fields in a design grid should not be changed. D. ?Fields cannot be added to or removed from a query.

Computer Science & Information Technology

What is the purpose of Structured Query Language (SQL)? p.000

What will be an ideal response?

Computer Science & Information Technology