List all sections (course_no, description, section_no) taught by instructors that do not live in Connecticut. Sort the result by course_no, section_no. (78 rows) Write two versions, and use a correlated subquery in one.

What will be an ideal response?


```
SELECT s.course_no, s.section_no, c.description
FROM section s, course c, instructor i
WHERE s.course_no = c.course_no
AND i.instructor_id = s.instructor_id
AND i.zip NOT IN (SELECT zip
FROM zipcode
WHERE state ='CT')
```
```
SELECT s.course_no, s.section_no, c.description
FROM section s, course c
WHERE s.course_no = c.course_no
AND EXISTS (SELECT null
FROM instructor i
WHERE i.instructor_id = s.instructor_id
AND i.zip NOT IN (SELECT zip
FROM zipcode
WHERE state ='CT'))
```

Computer Science & Information Technology

You might also like to view...

If the length of the array P is 4 and the length of the array T is 14, how many shifts of P need to be performed in the string searching algorithm?

a. 9 b. 10 c. 11 d. 12

Computer Science & Information Technology

Why is dial-up networking no longer the most common method used for remote access? Explain why it is more common for remote access to be done over a virtual private network.

What will be an ideal response?

Computer Science & Information Technology

The underlying value of summary sheet cell, which references a detail sheet cell, includes both the workbook name and detail sheet cell reference

Indicate whether the statement is true or false

Computer Science & Information Technology

In the code below, why is it that the displayName() module cannot print the person's name?Start   Call getInput()   Call displayName()StopModule getInput()   Declare String name   Display "Enter your name: "   Input nameEnd ModuleModule displayName()   Display "Your name is: " + nameEnd Module

A. The name variable is outside the displayName() module's scope. B. The name variable is a global variable. C. The name variable is strongly cohesive. D. The name variable has high coupling.

Computer Science & Information Technology