Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Oracle91 Chapter 1 To 5

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Concatenated Groupings Example 17-22

Summary 17-23

Practice 17 Overview 17-24

18 Advanced Subqueries

Objectives 18-2

What Is a Subquery? 18-3

Subqueries 18-4

Using a Subquery 18-5

Multiple-Column Subqueries 18-6

Column Comparisons 18-7

Pairwise Comparison Subquery 18-8

Nonpairwise Comparison Subquery 18-9

Using a Subquery in the FROM Clause 18-10

Scalar Subquery Expressions 18-11

Correlated Subqueries 18-14

Using Correlated Subqueries 18-16

Using the EXISTS Operator 18-18

Using the NOT EXISTS Operator 18-20

Correlated UPDATE 18-21

Correlated DELETE 18-24

The WITH Clause 18-26

WITH Clause: Example 18-27

Summary 18-29

Practice 18 Overview 18-31

xx
19 Hierarchical Retrieval

Objectives 19-2

Sample Data from the EMPLOYEES Table 19-3

Natural Tree Structure 19-4

Hierarchical Queries 19-5

Walking the Tree 19-6

Walking the Tree: From the Bottom Up 19-8

Walking the Tree: From the Top Down 19-9

Ranking Rows with the LEVEL Pseudocolumn 19-10

Formatting Hierarchical Reports Using LEVEL and LPAD 19-11

Pruning Branches 19-13

Summary 19-14

Practice 19 Overview 19-15

20 Oracle 9i Extensions to DML and DDL Statements

Objectives 20-2

Review of the INSERT Statement 20-3

Review of the UPDATE Statement 20-4

Overview of Multitable INSERT Statements 20-5

Types of Multitable INSERT Statements 20-7

Multitable INSERT Statements 20-8

Unconditional INSERT ALL 20-10

Conditional INSERT ALL 20-11

Conditional FIRST INSERT 20-13

Pivoting INSERT 20-15

External Tables 20-18

xxi
Creating an External Table 20-19

Example of Creating an External Table 20-20

Querying External Tables 20-23

CREATE INDEX with CREATE TABLE Statement 20-24

Summary 20-25

Practice 20 Overview 20-26

A Practice Solutions

B Table Descriptions and Data

C Using SQL* Plus

D Writing Advanced Scripts

E Oracle Architectural Components

Index

Additional Practices

Additional Practice Solutions

Table and Descriptions

xxii
Preface
Profile
Before You Begin This Course
Before you begin this course, you should be able to use a graphical user interface (GUI).
Required prerequisites are familiarity with data processing concepts and techniques.
How This Course Is Organized
Introduction to Oracle9i: SQL is an instructor-led course featuring lectures and hands-on
exercises. Online demonstrations and written practice sessions r einforce the concepts and
skills introduced.

Preface-3

You might also like