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+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers