Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Oracle SQL & PL-SQL

Duration: 5 Day
Course Outline

Day1
SQL
Writing a Basic SQL Statement
 Describing the SQL Select Capabilities
 Executing a Basic Select Statement with the Mandatory Clauses
 Differentiating Between SQL and iSQL*Plus Commands

Restricting and Sorting Data


 Limiting the Rows Retrieved by a Query
 Sorting the Rows Retrieved by a Query

Single Row Functions


 Describing Various Types of Functions Available in SQL
 Using a Variety of Character, Number, and Date Functions in SELECT Statements
 Explaining What the Conversion Functions Are and How They Are Used
 Using Control Statements

Day2

Displaying Data from Multiple Tables


 Writing SELECT Statements to Access Data from More Than One Table
 Describing the Cartesian Product
 Describing and Using the Different Types of Joins
 Writing Joins Using the Tips Provided

Aggregating Data by Using Group Functions


 Identifying the Different Group Functions Available
 Explaining the Use of Group Functions
 Grouping Data by Using the GROUP BY Clause

Writing Subqueries
 Describing the Types of Problems That Subqueries Can Solve
 Describing Subqueries
 Listing the Types of Subqueries
 Writing Single-Row and Multi-Row Subqueries
 Describing and Explaining the Behavior of Subqueries When NULL Values Are
Retrieved

Producing Readable Output with iSQL*Plus


 Producing Queries That Require an Input Variable
 Customizing the iSQL*Plus Environment
 Producing More Readable Output
 Creating and Executing Script Files

Manipulating Data
Oracle SQL & PL-SQL
 Describing Each Data Manipulation Language (DML) Command
 Inserting Rows into a Table
 Updating Rows in a Table
 Deleting Rows from a Table
 Merging Rows into a Table
 Controlling Transactions
 Describing Transaction Processing
 Describing Read Consistency and Implicit and Explicit Locking

Creating and Managing Tables


 Describing the Main Database Objects
 Creating Tables
 Describing the Oracle Data Types
 Altering Table Definitions
 Dropping, Renaming, and Truncating Tables

Including Constraints
 Describing Constraints
 Creating and Maintaining Constraints

Creating Views
 Describing Views and Their Uses
 Creating a View
 Retrieving Data by Means of a View
 Inserting, Updating, and Deleting Data Through Views
 Dropping Views
 Altering the Definition of a View
 Inline Views
 Top 'N' Analysis

Day3

Other Database Objects


 Creating, Maintaining, and Using Sequences
 Creating and Maintaining Indexes
 Creating Private and Public Synonyms

Enhancements to the GROUP BY Clause


 Using ROLLUP as an Extension to the GROUP BY Clause to Produce Subtotal
Values
 Using CUBE as an Extension to the GROUP BY Clause to Produce Cross-Tabulation
Values
 Using the GROUPING Function to Identify the Row Values Created by ROLLUP or
CUBE Operators
 Using GROUPING SETS to Produce a Single Result Set That Is Equivalent to a
UNION ALL Approach
 Using the WITH Clause
Oracle SQL & PL-SQL

Advanced Subqueries
 Multiple-Column Subqueries
 Writing a Subquery in the FROM Clause
 Writing and describing Correlated Subquery
 Using EXISTS and NOT EXISTS Operators
 Updating and Deleting Rows Using Correlated Subqueries
 Using Scalar Subqueries in SQL

Oracle Extensions to DML and DDL Statements


 Discussing Multitable Inserts
 Creating and Using External Tables
 Naming the Index and Using the CREATE INDEX Command at the Time of
Creating Primary Key Constraint

Day4

PL-SQL

Introduction to PL/SQL
 What is PL/SQL
 PL/SQL Environment
 Benefits of PL/SQL
 Overview of the Types of PL/SQL blocks
 Create and Execute a Simple Anonymous Block
 Generate Output from a PL/SQL Block
 iSQL*Plus as PL/SQL Programming Environment

Declaring PL/SQL Identifiers


 Identify the Different Types of Identifiers in a PL/SQL subprogram
 Use the Declarative Section to Define Identifiers
 List the Uses for Variables
 Store Data in Variables
 Declare PL/SQL Variables

Writing Executable Statements


 Describe Basic Block Syntax Guidelines
 Use Literals in PL/SQL
 Customize Identifier Assignments with SQL Functions
 Use Nested Blocks as Statements
 Reference an Identifier Value in a Nested Block
 Qualify an Identifier with a Label
 Use Operators in PL/SQL
 Use Proper PL/SQL Block Syntax and Guidelines

Interacting with the Oracle Server


 Identify the SQL Statements You Can Use in PL/SQL
 Include SELECT Statements in PL/SQL
 Retrieve Data in PL/SQL with the SELECT Statement
 Avoid Errors by Using Naming Conventions When Using Retrieval and DML
Statements
Oracle SQL & PL-SQL
 Manipulate Data in the Server Using PL/SQL
 The SQL Cursor concept
 Use SQL Cursor Attributes to Obtain Feedback on DML
 Save and Discard Transactions

Writing Control Structures


 Control PL/SQL Flow of Execution
 Conditional processing Using IF Statements
 Conditional Processing CASE Statements
 Handle Nulls to Avoid Common Mistakes
 Build Boolean Conditions with Logical Operators
 Use Iterative Control with Looping Statements

Working with Composite Data Types


 Learn the Composite Data Types of PL/SQL Records and Tables
 Use PL/SQL Records to Hold Multiple Values of Different Types
 Inserting and Updating with PL/SQL Records
 Use INDEX BY Tables to Hold Multiple Values of the Same Data Type

Day5

Using Explicit Cursors


 Cursor FOR Loops Using Subqueries
 Increase the Flexibility of Cursors By Using Parameters
 Use the FOR UPDATE Clause to Lock Rows
 Use the WHERE CURRENT Clause to Reference the Current Row
 Use Explicit Cursors to Process Rows
 Explicit Cursor Attributes
 Cursors and Records

Handling Exceptions
 Handling Exceptions with PL/SQL
 Predefined Exceptions
 Trapping Nonpredefined Oracle Server Errors
 Functions that Return Information on Encountered Exceptions
 Trapping User-Defined Exceptions
 Propagate Exceptions
 Use The RAISE_APPLICATION_ERROR Procedure To Report Errors To Applications

Creating Stored Procedures


 Describe PL/SQL blocks and subprograms
 Describe the uses of procedures
 Create procedures
 Differentiate between formal and actual parameters
 List the features of different parameter modes
 Create procedures with parameters and invoke a procedure
 Handle exceptions in procedures
 View source code in the data dictionary

Creating Stored Functions


 Describe stored functions
 List the CREATE OR REPLACE FUNCTION syntax
Oracle SQL & PL-SQL
 Identify the steps to create a stored function
 Create a stored function in iSQL*Plus and execute a stored function
 Identify the advantages of using stored functions in SQL statements
 Identify the restrictions of calling functions from SQL statements
 Describe how procedures and functions differ

Creating Packages
 List the benefits or using PL/SQL packages
 Differentiate between a package specification and a package body
 Create packages
 Include public and private constructs in a package
 Call public and private constructs in a package
 Remove packages

Creating Triggers
 Describe different types of triggers
 Describe database triggers and their use
 Create database triggers
 Describe database trigger firing rules
 Remove database triggers

You might also like