FIT1004 Lecture Notes - Lecture 7: Virtual Method Table

71 views2 pages
Lecture 7: Correlated subquery
related to the outer query (references the outer columns in the outer query)
executed repeatedly, one for each row fetched by the outer query
example : List all the employees (empno, empname, empinit, empbdate & deptno) who
are oldest in the department they work in
EXISTS PREDICATE
Evaluates to "true" if the set represented by the subquery is not empty, otherwise “false”
Example: List all the employees if and only if one or more of the employees have
monthly salary less than 6000
List all the departments that do not have any employee
Unlock document

This preview shows half of the first page of the document.
Unlock all 2 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers