Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Les 06

Les 06

Ratings: (0)|Views: 39|Likes:
Published by api-3755950

More info:

Published by: api-3755950 on Oct 18, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Copyright \u00a9 2004, Oracle. All rights reserved.
Retrieving Data Using Subqueries
Copyright \u00a9 2004, Oracle. All rights reserved.
Objectives
After completing this lesson, you should be able to do
the following:

\u2022Write a multiple-column subquery
\u2022Use scalar subqueries in SQL
\u2022Solve problems with correlated subqueries
\u2022Update and delete rows using correlated

subqueries
\u2022Use theEX IST S and NOT EXISTS operators
\u2022Use theWI TH clause
Copyright \u00a9 2004, Oracle. All rights reserved.
Multiple-Column Subqueries
Main query
WHERE (MANAGER_ID, DEPARTMENT_ID) IN
Subquery
100
90
102
60
124
50
Each row of the main query is compared to values
from a multiple-row and multiple-column subquery.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->