Вы находитесь на странице: 1из 7

^baco

S.1 S Q L F u n d a m e n t a ! i 1. Introduction
*

Qrenrw of Oracle Datbase 11g and reated products


O v e r v e w of relational d a t b a s e m a n a g e m e n t c o n c e p t s a n d terrmnotegies

frroduction lo SQL and lis developmen environm mis


T h e H R s c h e m a a n d t h e tetles u s e d in this c o u r s e

Oracle Datbase documentaron and addltional r e z u r c e s

2. Retrieve Data U s i n g the S Q L S E L E C T S t a t e m m t

List the eapabilities of SQL SELECT ssAemeris


G e n r a t e a report of d a t a frorn t h e output of a b a s c S E L E C T s i a t e m e n l

*
*

sage of adthmelic expressions and ULL vales


Implemen Gofumn aliases

Describe the concatenaron operaior, literal character strings, alternativa quoie


operator, a n d t h e DiSTNCT k e y w o r d

* DispSay the able strudure using the DESCRIBE comman 3. R e s t r i c t a n d Sort Data *
*

Write queras wih a WHERE clause to mit the output rdreved


U s e the c o m p a r i s o n o p e r a t o r s a n d Iogical o p e r a t o r s

*
*

ideniify the rules of prced&nce for comparison and Iogical operators of c h a r a c t e r strng literals in t h e VVHERE c l a u s e Wre que res with an O R D E R BY clause
sage S o r t OLput in d e s c e n d i n g a n d a s c e n d i n g order

Substuion Variables

4 . U s e S i n g i e - R c w F u n c t i o n s to Customze Oucpot *

Dfferentsate beween single row and mltiple row functions


hAampiAme s t r i n g s u s i n g character functions

Maniplate numbers with fre ROUND, TRUNC, and MOD functions


P e r f o r m a r i t h m e t c with d a t e d a t a

Manipula! e date s with t he DA TE functions

5. Conversin F u n c t i o n s and Condtionaf E x p r e s s i o n s *

Describe implicit and explicit dala type conversin


D e s c r i b e T O j C H A R , T O _ N U M B E R , and T O L D A T E c o n v e r s i n f u n c t i o n s Appfy he

Nesing m ultlple functions NVL NULUF, and COALESCE functions to ^a


:

lMlfiit$flt BM^HBII jupiar TjflMn&tffcifr H1feigg

mAbaco

Use cooyliooa! F THEN ELSE logio

8. A y g f e g f e d D a l a U t f n g G r o u p F u n c t i o n s *
*

How aggregation fundios help to produce nieaningfu! reports?


U s e the AVG. SUM, M i N , a n d MAX function
:

*
*

How to handle Nuil Vales in a group function?


D i v i d e t h e d a t a n g r o u p s by u s i n g t h e G R O U P B Y c l a u s e

Bcofude groups o date by using the HAV1NG clause

7. Dtpfay D a l a F r o n i M l l t t i p l e T i b i e s 0 s i n g J-sirts * *
*

Wme SELECT stafements to acoess data from more than one table Joln Tablas Using SQL: 1998 Syntax
V i e w d a t a that d o e s not m e e * a j o i n oondSion by u s i n g o u t e r j o i n s

*
*

Jmn a table to Itsaf by using a self join


Crate C r o s s Joins

S. l i t e Sb^qy^fls io S o l ve Q u e d e s * *

Use a Subcjuefy to Solve a Probiem Execue Singe -Row S u b - q u e r i e s Depioy Group F u n d a i s in a Sub-queiy
Mumpie-Rqw Subqueries

Use ANY a n d ALL Operator in Multiple -Row Sub-queries


U s e E X i S T S Operator

i . SET Operalors *

Wha are S E T operators?


U s e a S E T o p e r a t o r to c o m b i n e multpie q u e r e s into a s i n g l e q u e ? v

*
*

Use UNION. U M O N ALL, INTERSECT, and M I N U S Operator


u s e O R D E R B Y C a u s e in S e l O p e r a t i o n s

10. D a l a Marilpufaton * *
*

Add New Rows to a Tabla Change the Dala in a Table


U s e D E L E T E and T R U N C A T E Statements

*
*

Save and dscard changes with the COM&I T and RGLLBACK statements
Implement R e a d Consistency

* e s c r i b e the POR UPDATE Clause 11. t s e D D L Statements to Crate and Mana-ge Tabfes *
*

Cateyoriza Datbase Objects C r a t e T a b i e s u s i n g t h e CREATE TABLE S t a t e m e r t Identify the ata types


Describe Constrants

SiAbgco
How alier a t a b l e ?

12. Oiher Scheiiia Ofal&cs


#
#

Crate, mofy, and rdriev^ data from a view


Perform D a t a m a n i p u a t o n i a n g u a g e (DML) o p e r a o n s on a v i e w

Drop a vew
O r a t e , u s e , a n d roodfy a s e q u e n c e

Crate and malnialn ndexes Crate and drop synonyms

1. Infroducton
*

Course Prerequisites
Course Agenda

* * *

Human Resources ( H R ) Scheroa Revew o f U s i n g O r a c l e S Q L D e v e i o p e r SQL Satements in SQL*Pfus Revlew of sorne basic concepta of S Q L

*
*

fdentsfy the System and Oqject Privileges


Crate s e r s

Gtani System Prveges


Crate a n d Grartl Priviieges to a Role

Change Your Password


G r & n O b j e c Privifeges

*
*

How to Pass On Your Priviieges?


Revoke Object Priviieges

3. fifenagement o f S e h e m a Objecs *
*

Add. Modtfy. and Drop a Coiumn


Add, Drop, a n d Defer a Consraint

* * * *
* *

Enabte and Disable a Gonsraint Crate and Remove Indexes Crate a Functon-Sased ndex Perform Fiashback Op eration s
Crate a n Externa! Table by Usina O R A C L E _ L O A D E R ana bv Usina

O R A C L E J3ATAPUMP
Queryfcxtemal tapies

4 . Manage O b j e c t s with Data Dictkmary V k w s *

V^ia! is he Data Diotionary?


H o w t o U s e h e Dctonarv V i e w s ?

*
*

USERjQBJECTS and ALLJ3BJECTS Views


v i e w Table and Coiumn Information

*
*

Query the dictionary views for constraint informaion


Q u e r y t h e dicttonary v i e w s for v i e w , s e q u e n c e , n d e x a n d s y n o n y m Information

* *

Add a comment to a table Query the dictionary views for comment informaion

5. Maolpu!atfc- Lar y e Dala S e i s *


*

Use Subqueries to Maniplate Data


Retrieve Data Using a Subquery as Souroe

man ata Usina a Subquery as a Target List the types of Multitabie INSERT Saemens

* *
*

WSiat are Time Zones? I h e C U ~ R E N T _ D A T E , CURRENTTIMESTAMP, and LO CAL T! MESTAMP


fimcifons

Compare Date and Time in a Sesson s Time Zoos


Describe D B T M E Z O N E and S E S S O N T M E Z O N E

* *
*

List the differences belween DATE and UMESTAIMP denfy the INTERVAL Data Types
U s a g e o f E X T R A C T , T Z J D F F S E T a n d F R O M ^ T Z functions

Use TQ_T!?W!ESTAMP, TO_YMINTERVAL, and TGJ3SINTERVAL

7. R e t r i s v s Data Using Subqyeifes *


*

Multipie-Coumn Subqueries
Pairwise and Nonpairwise Comparison

*
*

Usage of Soalar Subqueiy Expressions


S o l v e p r o b e m s with C o r r e f a t e d S u b q u e r i e s

* *

Update and Delete Rows Using Correlated Subqueries U s e h e EX1STS a n d NOT EXfSTS o p e r a t o r s Use the WITH clause Use Recursive WiTH clause

8. R e g u l a r E x p r e s s i o n S u p p o i t *
*

liwoke Regular Expressions Functions and Condifons In SQL


fmplement M e t a C h a r a c t e r s w i t h R e g u l a r E x p r e s s i o n s

* * * * *

Perfom a Basic Search using he REGEXPJUKE unction Pgid p a t t e r n s using the REGEXP_fNSTR function Exrac SubsringsTusing the REGEXPJSUBSTR function Rspfaee Paerns Using t h e REGEXP_REPLACE f u n c t i o n How to use Sub-Expiessions mih Regula Expression Support? TheREGEXP COUNT function

S .3 P L / S Q L r o f i d e m e n m l s

1. Inifodoctlen

Course Objecives
Course Agenda

Human Resources (HR) Schema


I r i r o d u c o n to S Q L D e v e l o p e r

2. ntroduction to P L / S Q L # *

PU5QL Qveaiew Benefits of PL/SQL Subprograms


Gverview o f t h e Types of P L / S Q L biocks

Crate a Simple Anonymous Stock


G e n r a l e O u i p u t from a P U S Q L 9 * o c k

3. P L / S Q L I d n t l f l f B #

List the differen Types of Idenfiers in a PL/SQL subprogram


U s a g e o f the D e c a r a i v e S e c t o n t o d e f i n e dentifiers

Use variables to store data fdentfy Scaar Data Types T n e %7YPE Atirtbute \Nhai are Bkid Variables? Sequences in P U S Q L Expressions

4 . Mfiite E j e c u t a b l e S tatemen ts t

Describe Basic PL/SQL


Comment Code

Btock

Synfax GukJelines

Deployment of SQL Functions in PL/SQL


H o w to c o n v e r t Data T y p e s ?

Nesed Biocks Identify the Operators in PL/SQL

5. Internet ion with he Oracle S e r v e r i * lavotee SELECT Saemens in PL/SQL to Retrieve data Data Manipularon in the Server Using PL/SQL

jAbaco _
* ' s a g e o f S Q L C u r s o r A f t r f c u t e s to ObXmin F c c d b a c k o n DML

Save and Dscard Transacions 3 Structures

S. C o i *

Condiional processing Using IF Saiemens


Condona processing Using C A S E Staieroents

Use simple Loop Statemen


U s e VWhfe L o o p S i a t e m e n t

*
*

Use For Loop Statemen


Desorfoe the Continu Statement

? . C o m p o s l e Data T y p e s * #
*

Use PUSQL Records The %ROWTYPE Aribue Inser and Update with PL/SQL Records
A s s o c a t v e A r r a y s ( N D E X BY T a b l e a ?

mm

Examine NDEX BY Table Mebods Use INDEX BY Table of Re. g |

S. Expici C u r s o r s V5/hat are Explkit Cursors?

FOR UPDATE Clause and WHERE CURRENT Clause

S. Excepon H a n d l i n g *
*

Undersland Excpticos
Heridle - ^ c e p t i o n s wh P L / S Q L

*
*

*
*

Tfap Predefined Oracle Server Errors T m p N o n - P r e d e f i n e d O r a c l e S e r v e r Error? Trap User-Defined Excepions


Propaqate ExcepHons

RAISE_APPL!CATION_ERROR Procedure

10. S i o r e d F r o c e d u r e s and F u n c t i o n s * *
*

lindarstand Stored P Tocaduras and Functions Differeniate beween anonymous biocks and subprograms
Crate a Simple Procedure

Ceme a Simple Procedure with !N parameter

mAoac^

S .4 O R A C L E F o r m s Deveoper *

inroductionan Oracle Fonns DeveoperSuite l i s


O r a c e D e v e o p e r e n l a web: F o r m s & Reports S e r v i c e s

* *
*

B entorno de Forms Builder Creacin y ejecucin de un Mdulo Forms


S o q u e s de datos y Marcos

* *

Elementos de un formulario Disparadores


Control d e V e n t a n a s y L i e n z o s

* *

Elementos adicionales a m formulario: Alertas. Grupos <


v a i o r e s ( L O V s ) , Editores.: T e m p o r k a d o r w , A t r i b u t o s visi

Escritura de cdigo flexible

Вам также может понравиться