oracle database: sql and pl/sql fundamentals ... - …€¦ · the fundamentals of sql and pl/sql...

12
OILSIA OSLO INSTITUTE OF SCIENCE AND TECHNOLOGY O S L O I N S T I T U T E OF SCIEN CE A N D TECH N OLO G Y www.oilsia.com /oilsianorway [email protected] /oilsianorway1 Oracle Database: SQL and PL/SQL Fundamentals Certification Course

Upload: hoangxuyen

Post on 22-Apr-2018

274 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Oracle Database: SQL and PL/SQL Fundamentals ... - …€¦ · the fundamentals of SQL and PL/SQL along with the bene˜ts of the ... Identify the major structural components of the

OILSIA

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

www.oilsia.com /[email protected] /oilsianorway1

Oracle Database: SQL and PL/SQL Fundamentals

Certi�cation Course

Page 2: Oracle Database: SQL and PL/SQL Fundamentals ... - …€¦ · the fundamentals of SQL and PL/SQL along with the bene˜ts of the ... Identify the major structural components of the

OILSIA

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

www.oilsia.com /[email protected] /oilsianorway1

Duration:

5 Days (30 hours)

What you will learn:

This Oracle Database: SQL and PL/SQL Fundamentals training delivers the fundamentals of SQL and PL/SQL along with the bene�ts of the programming languages using Oracle Database technology.

Bene�ts to You:

By taking this course, you'll be able to create and manipulate relational data bases using SQL and PL/SQL. This course is also an excellent method of preparing to take the Oracle Database Foundations Certi�ed Junior exam.

Audience:

PL/SQL DeveloperData Base AdministratorPrerequisitesFamiliarity with Relational Data ConceptsFamiliarity with programming concepts

Page 3: Oracle Database: SQL and PL/SQL Fundamentals ... - …€¦ · the fundamentals of SQL and PL/SQL along with the bene˜ts of the ... Identify the major structural components of the

OILSIA

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

www.oilsia.com /[email protected] /oilsianorway1

Course Objectives:

Run data manipulation statements (DML) to update data in the Oracle Database.Design PL/SQL anonymous block that execute e�ciently.Describe the features and syntax of PL/SQL.Handle runtime errors.Describe stored procedures and functions.Use PL/SQL programming constructs and conditionally control code �ow (loops, control structures, and explicit cursors).Use cursors to process rows.Identify the major structural components of the Oracle Database 11g.Retrieve row and column data from tables with the SELECT statement.Create reports of sorted and restricted data.Employ SQL functions to generate and retrieve customized data.Display data from multiple tables using the ANSI SQL 99 JOIN syntax.Create reports of aggregated data.Run data de�nition language (DDL) statements to create and manage schema objects.

Page 4: Oracle Database: SQL and PL/SQL Fundamentals ... - …€¦ · the fundamentals of SQL and PL/SQL along with the bene˜ts of the ... Identify the major structural components of the

OILSIA

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

www.oilsia.com /[email protected] /oilsianorway1

Course Topics:

Introduction:

Overview of Oracle Database 12c and related products Overview of relational database management concepts and terminologiesIntroduction to SQL and its development environmentsThe HR schema and the tables used in this courseOracle Database documentation and additional resources

Retrieve Data using the SQL SELECT Statement:

List the capabilities of SQL SELECT statementsGenerate a report of data from the output of a basic SELECT statement Use arithmetic expressions and NULL values in the SELECT statement Invoke Column aliasesConcatenation operator, literal character strings, alternative quote operator, and the DISTINCT keyword Display the table structure using the DESCRIBE command

Restricted and Sorted Data:

Write queries with a WHERE clause to limit the output retrievedDescribe the comparison operators and logical operatorsDescribe the rules of precedence for comparison and logical operatorsUsage of character string literals in the WHERE clauseWrite queries with an ORDER BY clauseSort the output in descending and ascending orderSubstitution Variables

Page 5: Oracle Database: SQL and PL/SQL Fundamentals ... - …€¦ · the fundamentals of SQL and PL/SQL along with the bene˜ts of the ... Identify the major structural components of the

OILSIA

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

www.oilsia.com /[email protected] /oilsianorway1

Usage of Single-Row Functions to Customize Output:

List the di�erences between single row and multiple row functionsManipulate strings using character functionsManipulate numbers with the ROUND, TRUNC, and MOD functionsPerform arithmetic with date dataManipulate dates with the DATE functions

Conversion Functions and Conditional Expressions:

Describe implicit and explicit data type conversionDescribe the TO_CHAR, TO_NUMBER, and TO_DATE conversion functionsNesting multiple functionsApply the NVL, NULLIF, and COALESCE functions to dataUsage of conditional IF THEN ELSE logic in a SELECT statement

Aggregated Data Using the Group Functions:

Usage of the aggregation functions in SELECT statements to produce meaningful reports Describe the AVG, SUM, MIN, and MAX functionHow to handle Null Values in a group function?Divide the data in groups by using the GROUP BY clause Exclude groups of date by using the HAVING clause

SELECT * FROM table_name;

Page 6: Oracle Database: SQL and PL/SQL Fundamentals ... - …€¦ · the fundamentals of SQL and PL/SQL along with the bene˜ts of the ... Identify the major structural components of the

OILSIA

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

www.oilsia.com /[email protected] /oilsianorway1

Display Data From Multiple Tables:

Write SELECT statements to access data from more than one tableJoin Tables Using SQL:1999 SyntaxView data that does not meet a join condition by using outer joinsJoin a table to itself by using a self joinCreate Cross Joins

Usage of Subqueries to Solve Queries:

Use a Subquery to Solve a Problem Single-Row SubqueriesGroup Functions in a SubqueryMultiple-Row SubqueriesUse the ANY and ALL Operator in Multiple-Row SubqueriesUse the EXISTS Operator

SET Operators:

Describe the SET operatorsUse a SET operator to combine multiple queries into a single query Describe the UNION, UNION ALL, INTERSECT, and MINUS Operators Use the ORDER BY Clause in Set Operations

James Carter IT department

Page 7: Oracle Database: SQL and PL/SQL Fundamentals ... - …€¦ · the fundamentals of SQL and PL/SQL along with the bene˜ts of the ... Identify the major structural components of the

OILSIA

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

www.oilsia.com /[email protected] /oilsianorway1

Data Manipulation:

Add New Rows to a Table Change the Data in a TableUse the DELETE and TRUNCATE StatementsHow to save and discard changes with the COMMIT and ROLLBACK statements Implement Read ConsistencyDescribe the FOR UPDATE Clause

DDL Statements to Create and Manage Tables:

Categorize Database ObjectsCreate TablesDescribe the data typesUnderstand ConstraintsCreate a table using a subqueryHow to alter a table?How to drop a table?

Other Schema Objects:

Create, modify, and retrieve data from a viewPerform Data manipulation language (DML) operations on a view How to drop a view?Create, use, and modify a sequence Create and drop indexesCreate and drop synonyms

Page 8: Oracle Database: SQL and PL/SQL Fundamentals ... - …€¦ · the fundamentals of SQL and PL/SQL along with the bene˜ts of the ... Identify the major structural components of the

OILSIA

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

www.oilsia.com /[email protected] /oilsianorway1

Introduction to PL/SQL:

PL/SQL OverviewList the bene�ts of PL/SQL SubprogramsOverview of the Types of PL/SQL blocksCreate a Simple Anonymous BlockGenerate the Output from a PL/SQL Block

PL/SQL Identi�ers:

List the di�erent Types of Identi�ers in a PL/SQL subprogram Usage of the Declarative Section to De�ne Identi�ersUse of variables to store data Scalar Data Types%TYPE AttributeBind VariablesSequences in PL/SQL Expressions

Write Executable Statements:

Basic PL/SQL Block Syntax GuidelinesHow to comment code?SQL Functions in PL/SQLData Type ConversionNested BlocksOperators in PL/SQL

Page 9: Oracle Database: SQL and PL/SQL Fundamentals ... - …€¦ · the fundamentals of SQL and PL/SQL along with the bene˜ts of the ... Identify the major structural components of the

OILSIA

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

www.oilsia.com /[email protected] /oilsianorway1

Interaction with the Oracle Server:

SELECT Statements in PL/SQL to Retrieve data Data Manipulation in the Server Using PL/SQL The SQL Cursor conceptLearn to use SQL Cursor Attributes to Obtain Feedback on DML How to save and discard transactions?

Control Structures:

Conditional processing Using IF StatementsConditional processing Using CASE StatementsSimple Loop StatementWhile Loop StatementFor Loop StatementThe Continue Statement

Usage of Composite Data Types:

PL/SQL RecordsThe %ROWTYPE AttributeInsert and Update with PL/SQL RecordsAssociative Arrays (INDEX BY Tables)INDEX BY Table MethodsINDEX BY Table of Records

Page 10: Oracle Database: SQL and PL/SQL Fundamentals ... - …€¦ · the fundamentals of SQL and PL/SQL along with the bene˜ts of the ... Identify the major structural components of the

OILSIA

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

www.oilsia.com /[email protected] /oilsianorway1

Explicit Cursors:

Understand Explicit Cursors Declare the CursorHow to open the Cursor? Fetching data from the Cursor How to close the Cursor? Cursor FOR loopExplicit Cursor AttributesFOR UPDATE Clause and WHERE CURRENT Clause

Exception Handling:

What are Exceptions?Handle Exceptions with PL/SQLTrap Prede�ned Oracle Server ErrorsTrap Non-Prede�ned Oracle Server ErrorsTrap User-De�ned ExceptionsPropagate ExceptionsRAISE_APPLICATION_ERROR Procedure

Stored Procedures and Functions:

What are Stored Procedures and Functions?Di�erentiate between anonymous blocks and subprograms Create a Simple ProcedureCreate a Simple Procedure with IN parameter Create a Simple FunctionExecute a Simple ProcedureExecute a Simple Function

Page 11: Oracle Database: SQL and PL/SQL Fundamentals ... - …€¦ · the fundamentals of SQL and PL/SQL along with the bene˜ts of the ... Identify the major structural components of the

OILSIA

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

www.oilsia.com /[email protected] /oilsianorway1

i

Important Information:

All certi�cates issued by the Institute bearing check code

Student must verify the institute validation of the certi�cate by typing the check code in the following link: http://www.oilsia.com/index.php/veri�cation/

In case the certi�cate has been veri�ed that means it has a data and that the certi�cate is considered valid. If no data occurs, student should immediately contact and check on the certi�cate validation with the Institute General depart-ment through the following e-mail address: [email protected]

All cards issued by the Institute bearing a code and a speci�c number as well

Student must check the card validity issued by the Institute through the follow-ing link: http://www.oilsia.com/index.php/veri�cation/

In case the certi�cate has been veri�ed, that means the card has a data and so it is a valid card. if no data occurs, student should immediately contact and check on the certi�cate validation with the Institute General department through the following e-mail address: [email protected]

i

i

i

i

i

i

Page 12: Oracle Database: SQL and PL/SQL Fundamentals ... - …€¦ · the fundamentals of SQL and PL/SQL along with the bene˜ts of the ... Identify the major structural components of the

OILSIA

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

OSLO INSTITUTE

OF SCIENCE AND TECHNOLOGY

www.oilsia.com /[email protected] /oilsianorway1

Certi�cate Model:

ID card Model: