Course Contents

COURSE MODULE
ORACLE SQL & PL/SQL
Course Description:
This course is designed to give users an understanding of Oracle SQL and Oracle PL/SQL languages using Oracle’s
SQL*Plus .The course covers SQL commands for DML, DDL, Query, and Transaction Control operations. Students
are also introduced to procedural programming using PL/SQL. The course topics are applicable to all versions of
Oracle through Oracle 10g.
What you will learn:

Explain the difference between SQL, PL/SQL and SQL*PLUS.

Write basic SQL queries to retrieve desired data.

Use DML statements (insert, update, and delete).

Use DDL statements (create, alter, and drop).

Use transaction control statements to commit, rollback, and create savepoints.

Write advanced queries.

Write scripts to do queries and display SQL*PLUS reports.

Control access to your database objects.

Write a PL/SQL block using all elements of block structure.

Write PL/SQL statements using lexical units, declared variables, and assignment statements.

Use control structures to loop, branch, and jump.

Use PL/SQL named exceptions and user-defined exceptions.

Use explicit cursors.
Who Should Attend:
Application designers and developers, database administrators and operators, and end users should attend this
course.
Duration:
Seven(7) Days Classroom & Lab Session.
Prerequisite Education or Experience:
There are no prerequisites for this course.
Course Outline:
Day 1:Introduction DBMS Concepts
1
2
3
4
What is Database?
What is RDBMS
What is SQL
RDBMS product in market
Basics of Oracle SQL

Users and Schemas


Introduction to Data Modeling
Introduction to Data Dictionary

Oracle SQL Data Types
1
COURSE MODULE
ORACLE SQL & PL/SQL
DDL Statements
1
2
3
4
5
Create a table
SQL Alter Table
Truncate Table
Drop Table
Rename Table
DML Statements
1
2
3
Insert rows into a table
Update rows in a table
Delete rows from a table
Constraints
1.
2.
3.
4.
5.
6.
7.
8.
What are Constraints?
Not Null Constraint
Check Constraint
Unique Constraint
Primary Key Constraint
Foreign Key Constraint
On Delete Cascade
Composite Keys
Day 2:o
o
o
TCL



DCL


Oracle SQL Commit
Rollback
Savepoint
Grant
Revoke
DRL & Clauses
 SELECT
 Where Clause
 ORDER BY
 GROUP BY
 Having Clause
Operators
 SQL Operators
Relational Operators
 Equals to (=) Operator
 Less than (<) Operator
 Greater than (>) Operator
 Less than or Equals to (<=) Operator
 Greater than or Equals to (>=) Operator
 Not Equals to ( != / ^= / <> ) Operator
 SQL IN Operator
 SQL BETWEEN Operator
 SQL LIKE Operator
 SQL IS NULL Operator
 SQL Concatenation ( || ) Operator
2
COURSE MODULE
ORACLE SQL & PL/SQL
Relational Negation Operators
 SQL NOT LIKE Operator
 SQL Not Equals to ( != / ^= / <> ) Operator
 SQL NOT IN Operator
 SQL NOT BETWEEN Operator
 SQL IS NOT NULL Operator
Logical Operators
 Logical AND Operator
 Logical OR Operator
 Logical NOT Operator
Arithmetic Operators
 Multiplication (*) Operator
 Division ( / ) Operator
 Addition (+) Operator in SQL
 Subtraction (-) Operator
Day 3:-
Functions
 String Functions
 Numeric Functions
 Date Functions
 Conversion Functions
 Group Functions
Joins
 What Is a Join?
 Inner Join (or) Simple Join (or) Equi Join
 Left Outer Join
 Right Outer Join
 Full Outer Join
 Cross Join
 Non-Equi Join
Subqueries
 Sub Query
 Sub Query In From Clause
 Sub Query In Select Clause
 Sub Query In Where Clause
 Nested Sub Queries
Set Operators
 UNION
 UNION ALL
 INTERSECT
 MINUS
3
COURSE MODULE
ORACLE SQL & PL/SQL
Day 4:Indexes
 Index
 Unique Index
 Non Unique Indexes
 Composite Index
 Function Based Index
Synonym
 Synonym
 Private Synonym
 Public Synonym
Sequence
 What Is Sequence?
 Using A Sequence
 Altering And Dropping The Sequence
Views
 View
 Simple View
 Complex Views
 DML Operations on Views
 MATERIALIZED VIEW
 Difference Between Normal and Materialized View
 Force View
Day 5:Chapter 1: Introduction PL/SQL
Repository Topics




What is PL/SQL?
PL/SQL Basic Synatx (Block)
Nested PL/SQL Block
Advantages of PL/SQL
Chapter 2: PL/SQL Variables & Data Types






What are Variables?
Scalar Data Types
Reference Data Types
LOB Data Types
Constant Variables
Scope Of Variables
Chapter 3: Conditional Statements





Conditional Statements
Only If Statement
IF-ELSE
NESTED IF
ELSIF
4
COURSE MODULE
ORACLE SQL & PL/SQL
Day 6:Chapter 6: Cursors





Cursors
Implicit Cursor
Explicit Cursor
Cursor using FOR Loop
Parameterized Cursors
Chapter 7: Error Handling




What is an EXCEPTION?
Pre-Defined Exceptions
Unnamed System Exceptions
User Defined Exceptions
Day 7:-
Chapter 9: Subprograms




Stored procedure
PLSQL Function
Parameters In Procedures And Functions
Subprogram Dependences
Chapter 10: Packages






What is a Package
Components Of A Package
Package Syntax
Package Example
Scope of various objects in a package
Advantages Of Packages
Chapter 11: Collections
 What is a collection?
 Collections Methods
 VARRAYS
 Nested Tables
 Index By Tables or Associate Arrays
 Differences Among collections
Chapter 12: Triggers
 What is a Trigger
 ROW LEVEL TRIGGER
 STATEMENT LEVEL TRIGGER
 Trigger Execution Hierarchy
 Mutating Triggers
5