Find all employees in the sales department by using a nested query.

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 Lname, Fname
2 FROM employee
3 WHERE DeptId =
4 (SELECT DeptId
5 FROM dept
6 WHERE UPPER(DeptName) = 'SALES');

LNAME FNAME
--------------- ---------------
Shaw Jinku
Garner Stanley
```

Computer Science & Information Technology

You might also like to view...

The mouse shortcut for selecting a word is to ________ the word

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which tab includes the Chart Styles group, where you can add a chart style to a PivotChart by clicking the style you want.

A. PivotTable Tools Design tab B. PivotTable Tools Styles tab C. PivotChart Tools Styles tab D. PivotChart Tools Design tab

Computer Science & Information Technology

____ is a communications protocol for incoming email.

A. ISP B. HTML C. SMTP D. POP

Computer Science & Information Technology

Which statement regarding the Border Gateway Protocol (BGP) is accurate?

a. BGP is limited to a single autonomous system. b. BGP is exclusively a distance-vector protocol. c. BGP utilizes TCP for communicating updates. d. BGP is a more advanced version of OSPF.

Computer Science & Information Technology