Oracle DBA who has worked with databases since. 1992, and with Oracle ......
9400. 29025. 29025. Source of example: Tom Kyte Effective Oracle by Design.
Abstract. Process-oriented workflow systems require transactional support in .... or for example a human task (e.g. making a phone call). .... Center, 1995. BDS. +.
Document N3966, Approved International Standard. 15938-5, March 2001. [7] ISO/IEC JTC1/SC29/WG11. MPEG-21 Requirements on Digital. Item Adaptation.
Jun 6, 2012 - 26. FROM DUAL;. 27. 28. INSERT INTO billing (order_id,order_date,order_amt). 29. VALUES (lv_order_id,lv_bill_date,lv_ordr_price);. 30.
within which a software system will eventually operate has been ... set of agreed upon business goals. 2.1. Organization theory .... 2 Photographers. Accounts.
Jan 1, 2005 - ... the article illustrates how MPEG-21 solves the chal- lenging and important problem of universal multimedia access. âJohn R. Smith ...
This paper presents the experiences of creating the information system MEDPHYT which is built to collect ... our survey of free access online databases indicates that they provide only very basic information on .... information on the website.
e-mail: [email protected]. TeL: + 32-24-77 32 20. Fax: + 32-24-78 5439. C. Heinrichs. Department of Paediatrics,. Hopital Universitaire des Enfants Reine.
that a recommender system is able to provide recommen- dation for, (2) ... sions; the learning rate, which measures how quickly an ..... For a deeper analysis of ...
CONSPIRACY 365. By Gabrielle Lord. Praise for CONSPIRACY 365 ºoa top
choice for reluctant ... JULY: 978-1-61067-109-5. AUGUST: 978-1-61067-110-1.
Oct 3, 2016 - electron transport chains on the inner membrane of .... Adjacent figure) Electron microscope image of ....
Your Citymail account is running on the Microsoft® Office 365 platform. ... allows
you access to Skydrive, Messenger, Xbox.Live, and other ... You can use https://
account.live.com/ResetPassword.aspx to reset the password for your Personal.
You are now an Office 365 E3 cutomer and you can leverage all the ... through
mobile devices thanks to Office Mobile for Windows Phone, iPhone or Android.
Aug 27, 2013 - (Abbas Ali. 2008). Materials .... REFERENCES. 1. Abbas Ali, Abdul Mozid, Mst. Sarmina ... Trivedi, V.B., Kazmi, S.M. and Kazmi,. S.N. (1980): ...
avoiding catastrophic failure of components. Possibilities to inspection of large areas ..... carburization, denting and crude deposits etc. Typical EC signals from.
Distributed Systems, Spring 2004. 23. (Coulouris et. al.) Access transparency:
enables local and remote resources to be accessed using identical operations.
permission of the author. BASICS of Mathcad: Arithmetic, constants, units,
complex numbers, editing. One can have math regions or text regions in a
document.
FINGERPRINTING METHODS. Fingerprinting methods, known also as signature-based consist .... sensor (inertial measurement unit), fig.4, or digital compass, fig.5.a. Fig. 4. InertiaCube .... In this work, we used a cheap sport pedometer for the ...
Up to now, several fast HO scheme had been proposed. In. [4], fast HO scheme for .... information to Authorization server via backbone network. And new BS ... the neighboring BS provides dedicated ranging slot, the serving BS should avoid ...
ABSTRACT. Multimedia streaming is becoming increasingly popular. The mul- timedia standard MPEG-4 was designed to support scenes of dif- ferent levels of ...
application of SCI, namely its use as a high-speed interconnection network .... bits are used for addressing within the nodes, in compliance with the CSR.
Jul 23, 2011 ... 2-day CPD on TUI-NA (Chinese Medical Massage). • 10 Tui Na ... On completion
of this 2-day course, the attendees will be able to: 1. Demonstrate the various
assessment and structural diagnosis for body parts and area of.
We present an adaptive distributed multimedia server architecture (ADMS) that ... Network distance and host resource metrics - obtained from network and host ...
3. PL/SQL Block Structure. ▫ Basic building block of PL/SQL programs. ▫ Three
possible sections of a block. ▫ Declarative section (optional). ▫ Executable ...
If an initial value is not assigned, then the initial value is NULL If the NOT NULL is used, then an initial value MUST be defined Can only declare one variable per line
Example: DECLARE -- anonymous block v_Description v_NumberSeats v_Counter v_FirstName v_MinimumStudentID v_PI BEGIN -- process data here EXCEPTION -- Error handling would go here END;/
The following are ILLEGAL variable declarations Example: DECLARE v_TempVar NUMBER NOT NULL; v_FirstName, v_LastName VARCHAR2(20); BEGIN -- process data here EXCEPTION -- Error handling would go here END; / Why are the above variable declarations illegal? How can the above illegal variable declarations be corrected? 5
Declaration Syntax (Anchor Type)
PL/SQL variables are often used to manipulate data in a database…so, the data type should be the same as the table column
DECLARE v_FirstName v_LastName
VARCHAR2(20); VARCHAR2(20);
What happens if the table was altered such that last_name is now VARCHAR2(25)? Rather than hardcode the variable type, use the %TYPE attribute
The portion of the program in which the variable can be accessed The PL/SQL engine will free the memory used for the variable when a variable goes out of scope DECLARE v_Number NUMBER(3,2); BEGIN DECLARE v_Character VARCHAR2(10); Scope of BEGIN v_Character …. END; END; 7
IF-THEN-ELSE IF boolean_expression1 THEN sequence_of_statements; [ELSIF boolean_expression2 THEN sequence_of_statements] [ELSE sequence_of_statements] END IF; Note for the use of ELSIF, not ELSEIF See examples! 8
DECLARE v_Major students.major%TYPE; v_CourseName VARCHAR2(10); BEGIN -- Retrieve the major for a given student SELECT major INTO v_Major FROM students WHERE ID = 10011; -- Based on the major, choose a course IF v_Major = 'Computer Science' THEN v_CourseName := 'CS 101'; ELSIF v_Major = 'Economics' THEN v_CourseName := 'ECN 203'; ELSIF v_Major = 'History' THEN v_CourseName := 'HIS 101'; ELSIF v_Major = 'Music' THEN v_CourseName := 'MUS 100'; ELSIF v_Major = 'Nutrition' THEN v_CourseName := 'NUT 307'; ELSE v_CourseName := 'Unknown'; END IF; DBMS_OUTPUT.PUT_LINE(v_CourseName); END; /
9
CASE
Anything written as an IF-THEN-ELSE construct can be written as a CASE statement Form 1: specify test expression after CASE keyword CASE test_var WHEN value1 THEN sequence_of_statements1; WHEN value2 THEN sequence_of_statements2; … WHEN valuen THEN sequence_of_statementsn; [ELSE else_sequence;] END CASE; See examples! 10
DECLARE v_Major students.major%TYPE; v_CourseName VARCHAR2(10); BEGIN -- Retrieve the major for a given student SELECT major INTO v_Major FROM students WHERE ID = 10011; -- Based on the major, choose a course CASE v_Major WHEN 'Computer Science' THEN v_CourseName := 'CS 101'; WHEN 'Economics' THEN v_CourseName :='ECN 203'; WHEN 'History' THEN v_CourseName := 'HIS 101'; WHEN 'Music' THEN v_CourseName := 'MUS 100'; WHEN 'Nutrition' THEN v_CourseName := 'NUT 307'; ELSE v_CourseName := 'Unknown'; END CASE; DBMS_OUTPUT.PUT_LINE(v_CourseName); END; /
11
DECLARE v_TestVar NUMBER := 1; BEGIN -- This CASE statement is labeled. CASE v_TestVar WHEN 1 THEN DBMS_OUTPUT.PUT_LINE('One!'); WHEN 2 THEN DBMS_OUTPUT.PUT_LINE('Two!'); WHEN 3 THEN DBMS_OUTPUT.PUT_LINE('Three!'); WHEN 4 THEN DBMS_OUTPUT.PUT_LINE('Four!'); END CASE MyCase; END; / 12
CASE
Form 2: no test expression after the CASE keyword CASE WHEN boolean_expression1 THEN sequence_of_statements; WHEN boolean_expression2 THEN sequence_of_statements; … [ELSE sequence_of_statements;] END CASE; See examples!
13
DECLARE v_Test1 NUMBER := 2; v_Test2 VARCHAR2(20) := 'Goodbye'; BEGIN CASE WHEN v_Test1 = 1 THEN DBMS_OUTPUT.PUT_LINE('One!'); DBMS_OUTPUT.PUT_LINE('Another one!'); WHEN v_Test1 > 1 THEN DBMS_OUTPUT.PUT_LINE('> 1!'); DBMS_OUTPUT.PUT_LINE('Still > 1!'); WHEN v_Test2 = 'Goodbye' THEN DBMS_OUTPUT.PUT_LINE('Goodbye!'); DBMS_OUTPUT.PUT_LINE('Adios!'); ELSE DBMS_OUTPUT.PUT_LINE('No match'); END CASE; END; /
14
Agenda
LOOPS
Simple Loops WHILE Loops Numeric FOR Loops Class Exercises
Records
15
Summary of last class
PL/SQL block
Variables
Sections Anonymous vs. Named Declaration, Anchored declaration Variable Scope
IF-THEN-ELSE CASE 16
PL/SQL Loops
Used to execute a sequence of statements repeatedly
When the number of iterations is unknown
Simple loops: executes at least once WHILE loops: executes while the condition is true
When the number of iterations is known in advance
Numeric FOR Loops: executes a specific number of times
17
Simple Loops
Syntax: DECLARE v_Counter BINARY_INTEGER :=0; BEGIN LOOP sequence_of_statements; EXIT WHEN condition; END LOOP; EXCEPTION -- Error handling would go here END; / See example!
18
Example
REM This is an example of a simple loop. DECLARE v_Counter BINARY_INTEGER := 1; BEGIN LOOP -- Insert a row into temp_table with the current value of the -- loop counter. INSERT INTO temp_table VALUES (v_Counter, 'Loop index'); v_Counter := v_Counter + 1; -- Exit condition - when the loop counter > 50 we will -- break out of the loop. IF v_Counter > 50 THEN EXIT; END IF; END LOOP; END; /
19
WHILE Loops
Syntax: DECLARE v_Counter BINARY_INTEGER :=1; BEGIN WHILE condition LOOP sequence_of_statements; [EXIT WHEN exit_condition;] END LOOP; EXCEPTION -- Error handling would go here END; / See example!
20
Example
REM while1.sql DECLARE v_Counter BINARY_INTEGER := 1; BEGIN -- Test the loop counter before each loop iteration to -- insure that it is still less than 50. WHILE v_Counter