Oracle Database: SQL and PL/SQL Fundamentals Certfcaton Course 1
Duraton: 5 Days (30 hours) What you wll learn: Ths Oracle Database: SQL and PL/SQL Fundamentals tranng delvers the fundamentals of SQL and PL/SQL along wth the benefts of the programmng languages usng Oracle Database technology. Benefts to You: By takng ths course, you'll be able to create and manpulate relatonal data bases usng SQL and PL/SQL. Ths course s also an excellent method of preparng to take the Oracle Database Foundatons Certfed Junor exam. Audence: PL/SQL Developer Data Base Admnstrator Prerequstes Famlarty wth Relatonal Data Concepts Famlarty wth programmng concepts 1
Course Objectves: * Run data manpulaton statements (DML) to update data n the Oracle Database. * Desgn PL/SQL anonymous block that execute effcently. * Descrbe the features and syntax of PL/SQL. * Handle runtme errors. * Descrbe stored procedures and functons. * Use PL/SQL programmng constructs and condtonally control code flow (loops, control structures, and explct cursors). * Use cursors to process rows. * Identfy the major structural components of the Oracle Database 11g. * Retreve row and column data from tables wth the SELECT statement. * Create reports of sorted and restrcted data. * Employ SQL functons to generate and retreve customzed data. * Dsplay data from multple tables usng the ANSI SQL 99 JOIN syntax. * Create reports of aggregated data. * Run data defnton language (DDL) statements to create and manage schema objects. 1
Introducton: Course Topcs: Overvew of Oracle Database 12c and related products Overvew of relatonal database management concepts and termnologes Introducton to SQL and ts development envronments The HR schema and the tables used n ths course Oracle Database documentaton and addtonal resources Retreve Data usng the SQL SELECT Statement: Lst the capabltes of SQL SELECT statements Generate a report of data from the output of a basc SELECT statement Use arthmetc expressons and NULL values n the SELECT statement Invoke Column alases Concatenaton operator, lteral character strngs, alternatve quote operator, and the DISTINCT keyword Dsplay the table structure usng the DESCRIBE command Restrcted and Sorted Data: Wrte queres wth a WHERE clause to lmt the output retreved Descrbe the comparson operators and logcal operators Descrbe the rules of precedence for comparson and logcal operators Usage of character strng lterals n the WHERE clause Wrte queres wth an ORDER BY clause Sort the output n descendng and ascendng order Substtuton Varables 1
Usage of Sngle-Row Functons to Customze Output: Lst the dfferences between sngle row and multple row functons Manpulate strngs usng character functons Manpulate numbers wth the ROUND, TRUNC, and MOD functons Perform arthmetc wth date data Manpulate dates wth the DATE functons Converson Functons and Condtonal Expressons: Descrbe mplct and explct data type converson Descrbe the TO_CHAR, TO_NUMBER, and TO_DATE converson functons Nestng multple functons Apply the NVL, NULLIF, and COALESCE functons to data Usage of condtonal IF THEN ELSE logc n a SELECT statement Aggregated Data Usng the Group Functons: Usage of the aggregaton functons n SELECT statements to produce meanngful reports Descrbe the AVG, SUM, MIN, and MAX functon How to handle Null Values n a group functon? Dvde the data n groups by usng the GROUP BY clause Exclude groups of date by usng the HAVING clause SELECT * FROM table_name; 1
Dsplay Data From Multple Tables: Wrte SELECT statements to access data from more than one table Jon Tables Usng SQL:1999 Syntax Vew data that does not meet a jon condton by usng outer jons Jon a table to tself by usng a self jon Create Cross Jons Usage of Subqueres to Solve Queres: Use a Subquery to Solve a Problem Sngle-Row Subqueres Group Functons n a Subquery Multple-Row Subqueres Use the ANY and ALL Operator n Multple-Row Subqueres Use the EXISTS Operator SET Operators: Descrbe the SET operators Use a SET operator to combne multple queres nto a sngle query Descrbe the UNION, UNION ALL, INTERSECT, and MINUS Operators Use the ORDER BY Clause n Set Operatons James Carter IT department 1
Data Manpulaton: Add New Rows to a Table Change the Data n a Table Use the DELETE and TRUNCATE Statements How to save and dscard changes wth the COMMIT and ROLLBACK statements Implement Read Consstency Descrbe the FOR UPDATE Clause DDL Statements to Create and Manage Tables: Categorze Database Objects Create Tables Descrbe the data types Understand Constrants Create a table usng a subquery How to alter a table? How to drop a table? Other Schema Objects: Create, modfy, and retreve data from a vew Perform Data manpulaton language (DML) operatons on a vew How to drop a vew? Create, use, and modfy a sequence Create and drop ndexes Create and drop synonyms 1
Introducton to PL/SQL: PL/SQL Overvew Lst the benefts of PL/SQL Subprograms Overvew of the Types of PL/SQL blocks Create a Smple Anonymous Block Generate the Output from a PL/SQL Block PL/SQL Identfers: Lst the dfferent Types of Identfers n a PL/SQL subprogram Usage of the Declaratve Secton to Defne Identfers Use of varables to store data Scalar Data Types %TYPE Attrbute Bnd Varables Sequences n PL/SQL Expressons Wrte Executable Statements: Basc PL/SQL Block Syntax Gudelnes How to comment code? SQL Functons n PL/SQL Data Type Converson Nested Blocks Operators n PL/SQL 1
Interacton wth the Oracle Server: SELECT Statements n PL/SQL to Retreve data Data Manpulaton n the Server Usng PL/SQL The SQL Cursor concept Learn to use SQL Cursor Attrbutes to Obtan Feedback on DML How to save and dscard transactons? Control Structures: Condtonal processng Usng IF Statements Condtonal processng Usng CASE Statements Smple Loop Statement Whle Loop Statement For Loop Statement The Contnue Statement Usage of Composte Data Types: PL/SQL Records The %ROWTYPE Attrbute Insert and Update wth PL/SQL Records Assocatve Arrays (INDEX BY Tables) INDEX BY Table Methods INDEX BY Table of Records 1
Explct Cursors: Understand Explct Cursors Declare the Cursor How to open the Cursor? Fetchng data from the Cursor How to close the Cursor? Cursor FOR loop Explct Cursor Attrbutes FOR UPDATE Clause and WHERE CURRENT Clause Excepton Handlng: What are Exceptons? Handle Exceptons wth PL/SQL Trap Predefned Oracle Server Errors Trap Non-Predefned Oracle Server Errors Trap User-Defned Exceptons Propagate Exceptons RAISE_APPLICATION_ERROR Procedure Stored Procedures and Functons: What are Stored Procedures and Functons? Dfferentate between anonymous blocks and subprograms Create a Smple Procedure Create a Smple Procedure wth IN parameter Create a Smple Functon Execute a Smple Procedure Execute a Smple Functon 1
Important Informaton: All certfcates ssued by the Insttute bearng check code Student must verfy the nsttute valdaton of the certfcate by typng the check code n the followng lnk: http:///ndex.php/verfcaton/ In case the certfcate has been verfed that means t has a data and that the certfcate s consdered vald. If no data occurs, student should mmedately contact and check on the certfcate valdaton wth the Insttute General department through the followng e-mal address: student@olsa.no All cards ssued by the Insttute bearng a code and a specfc number as well Student must check the card valdty ssued by the Insttute through the followng lnk: http:///ndex.php/verfcaton/ In case the certfcate has been verfed, that means the card has a data and so t s a vald card. f no data occurs, student should mmedately contact and check on the certfcate valdaton wth the Insttute General department through the followng e-mal address: student@olsa.no 1
Certfcate Model: ID card Model: 1