Database links: Views:

Size: px
Start display at page:

Download "Database links: Views:"

Transcription

1 Database links: Views: Allows to connect to remote databases Can be public or private Public can be used by anyone and private is available only for owner of the object. Can point to host in the tns entry or can have descrip;on in the host clause Public database links without fully qualified username and password cannot be used in dbms jobs DBA_DB_LINKS gives informa;on about database links Syntax: Create [public] database link <dblink-name> connect to [<username>] [iden;fied by <passwd>] using <'hostdescrip;on'>; View is a logical representa;on of data. It is a query which runs against the base tables to get the data. If we use group func;ons in the select clause we need to define column alias Select statement cannot have order by We can change the data in underlying tables through views. If the column is defined using single row func;on we cannot update the column If u want to restrict the update the data on which the user have the access we can use with check op;on. To create a read-only view use with read only op;on Complex views will not enable you to change the data in any of the base tables if all the constraints are not defined properly. To modify the view use create or replace To compile the view user alter view <viewname> compile; To check for the errors use DBA_ERRORS view. DBA_VIEWS gives informa;on about views. Syntax: create view <viewname> (select query) [with check op;on constraint <constraint-name>][with readonly];

2 Materialized views: A materialized view is a replica of target table at a point of ;me. Used for repor;ng applica;ons or OLAP env Materialized view can be readonly,updatable materialize view and writeable materialized views Updatable materialized view must belong to a materialized group Writable materialized view is create with for update clause but it is not part of materialized group Materialized views can be refreshed fully or in incremental To setup an incremental refresh on mv's we need to have a primary key, mv log and logging enabled on target table. Dbms_mview.refresh package used to refresh the views Prebuilt op;on can be used for the larger tables to avoid pulling informa;on for remote database over the network. Materialized views can be par;;oned,indexes can be created on materialized views If materialized view uses a simple select statement or if a master table has lob then we need to go for full refresh If materialized view is a complex view and it has large data then we need to go for incremental or fast refresh execute DBMS_MVIEW.REFRESH('<view-name',cf,atomic_refresh=>false); Syntax: Synonym: Create materialized view <view-name> [for update] [query rewrite] [parnnon by <rangelist> (parnnon p1 values less than(<value)..] As (<select statement>) [with prebuilt]; To create materialize view log Create materialized view log on <table-name>; Synonym can be a public or private Create synonym <synonym-name> for <owner.object-name>; Create public synonym <synonym-name> for <owner.object-name>; Used as short cut.

3 Sequence: A sequence is a database object which generates integers according to rules specified at the ;me of crea;ng sequence Syntax: Create sequence <sequence-name> start with <ini;tal-value> increment by <value> [maxvalue <value> cyclenocycle]; Sequencename.currval to give the current value, sequencename.nextval to generate next value Sequence gaps occurs when you issue rollback and during system crash. Trigger: A trigger is a PLSQL block which fires when event occurs. Event can be dml statements are performed on tables or the user logins to database or database startup or shutdown. CREATE [OR REPLACE ] TRIGGER trigger_name {BEFORE AFTER INSTEAD OF } {INSERT [OR] UPDATE [OR] DELETE} [OF col_name] ON table_name [REFERENCING OLD AS o NEW AS n] [FOR EACH ROW] WHEN (condi;on) --- sql statements

4 PLSQL: PLSQL is a combina;on of SQL along with the procedural features of programming languages. PLSQL is a block structured language, meaning that PLSQL programs are divided and wrieen in logical blocks of code. PLSQL block consists of three parts. 1. Declara;ons: This sec;on starts with keyword declare. It is an op;onal sec;on and defines all variables, cursors, subprograms and other elements to be used in the program. 2. Executable commands: This sec;on is enclosed between begin and end and it is a mandatory sec;on. It consists of executable PLSQL statements of the program. It should have atleast one executable line of code which may be just a null command to indicate that nothing should be executed. 3. Excep;onal Handling: This sec;on start with the keyword EXCEPTION and its op;onal. Contains excep;ons that handles errors in the program. Every PLSQL statement ends with a semicolon (;). PLSQL blocks can be nested within other PLSQL blocks using and END. Here is the basic structure of a PLSQL block: DECLARE <declara;ons sec;on> <executable command(s)> EXCEPTION <excep;on handling>

5 Variable A variabe is nothing but a name given to a storage area that out programs can manipulate. Each variable in PLSQL has a specific datatype which determines the size and layout of the variables memory. Variable declara;on in PLSQL <variable_name> [constant] <datatype> [NOT NULL] [:= DEFAULT ini;al_value] Oracle defined DATATYPES: NUMBER,INTEGER,CHAR,VARCHAR2,LONG,ROWID,BOOLEAN,DATE,BLOB,CLOB,BFILE User defined DATATYPES: SUBTYPE name is CHAR(20) SUBTYPE INTEGER is NUMBER(38,0) Example of Variable Declara;ons: Sales number(10,2) Name varchar2(25) Address varchar2(100) Saluta;on name; A constat is declared using constant keyword. It requires an ini;al value and doesn't allow the value to be changed. Declaring a constant PI CONSTANT NUMBER := ;

6 ARRAY: PLSQL provides a data structure called VARRAY, which can store a fixed-size sequen;al collec;on of elements of same datatype. VARRAY consists of con;guous memory loca;ons. The lowest address corresponds to the first element and the highest address to the last element. Below is the syntax to create Varray type. Create or replace type <varray_type_name> is varray(n) of <element_type> Record: A PLSQL data structure that can hold data items of different kinds. Records consists of different fields, similar to a row of a database table. The %ROWTYPE aeribute enables a programmer to create a table based record. <variable-name> <table-name>%rowtype. Cursor: Oracle creates a memory area known as context area, for processing an SQL statement. A cursor is a pointer to this contenxt area.a cursor holds the rows returned b a SQL statement. There are two types of cursors. 1. IMPLICIT CURSORS: IMPLICIT CURSORS are automa;cally created by oracle whenever a SQL statement is executed, when there is no explicit curor for the statement. Whenever a DML statement (INSERT,DELETE and UPDATE) is issues, an implicit cursor is associated with this statement. For insert opera;on the cursor hold the data to be inserted. For update opera;ons the cursor iden;fied the rows that would be affected. 2. Explicit cursors: Explicit cursors are programmer defined cursors for gaining more control over the context area. Syntax for crea;ng explicit curor: CURSOR <cursor_name> is <select statement> CURSOR has aeributes %FOUND,%NOTFOUND which returns true if any records is affected bynot affected by DML statement %ISOPEN checks whether the cursor is opened or closed and %ORWCOUNT returns the number of records affected by DML statement.

7 CondiNons: IF STATEMENT: IF CONDITION THEN <ac;ons>; IF-THEN-: IF condi;on THEN <ac;ons>; <ACTIONS>; END IF: IF-THEN-ELSIF: IF CONDITION THEN <ac;ons>; ELSIF condi;on THEN <ac;ons>; <ac;ons>; CASE: CASE selector WHEN 'value1' THEN ac;ons; WHEN 'value2' THEN ac;ons; WHEN 'value3' THEN ac;ons;.. <ac;ons; END CASE; If (a<=20) then c:=c+1; IF color = red THEN dbms_output.put_line('you have choosen a red car'); dbms_output.put_line('please choose color of your car'); IF ( a = 10 ) THEN dbms_output.put_line('value of a is 10' ); ELSIF ( a = 20 ) THEN dbms_output.put_line('value of a is 20' ); ELSIF ( a = 30 ) THEN dbms_output.put_line('value of a is 30' ); dbms_output.put_line('none of the values is matching'); DECLARE grade char(1) := 'A'; CASE grade when 'A' then dbms_output.put_line('excellent'); when 'B' then dbms_output.put_line('very good'); when 'C' then dbms_output.put_line('well done'); when 'D' then dbms_output.put_line('you passed'); when 'F' then dbms_output.put_line('beeer try again'); else dbms_output.put_line('no such grade'); END CASE;

8 Procedure: Procedure is named PLSQL block which can have sequence of tasks to perform. CREATE [OR REPLACE] PROCEDURE proc_name [list of parameters] IS Declara;on sec;on Execu;on sec;on EXCEPTION Excep;on sec;on FuncNon: A func;on is a named plsql block which is similar to a procedure but returns value. CREATE [OR REPLACE] FUNCTION func;on_name [parameters] RETURN return_datatype; IS Declara;on_sec;on Execu;on_sec;on Return return_variable; EXCEPTION excep;on sec;on Return return_variable;

9 Basic Loop: Basic loop structure encloses sequence of statements in between loop and end loop statements.with each itera;on the sequence of statements is executed and then contro resumes at the top of the loop.exit statement or exit when statement is required to break the loop. A while loop repeatedly executes statements as long as condi;on is true.it test the condi;on before execu;ng the loop. A for loop allows to repeatedly executes the statements every ;me the condi;on is sa;sfied. DECLARE x number := 10; LOOP dbms_output.put_line(x); x := x + 10; IF x > 50 THEN exit; END LOOP; -- auer exit, control resumes here dbms_output.put_line('auer Exit x is: ' x); DECLARE a number(2) := 10; WHILE a < 20 LOOP dbms_output.put_line('value of a: ' a); a := a + 1; END LOOP; DECLARE a number(2); FOR a in LOOP dbms_output.put_line('value of a: ' a); END LOOP;

10 declare sal_v emp.sal%type; emp_no emp.empno%type; begin select sal,empno into sal_v,emp_no from emp where empno=10; dbms_output.put_line('salary of employee id ' emp_no ' is ' sal_v); end; create procedure simple_proc is --declare sal_v emp.sal%type; emp_no emp.empno%type; begin select sal,empno into sal_v,emp_no from emp where empno=10; dbms_output.put_line('salary of employee id ' emp_no ' is ' sal_v); end; create or replace procedure simple_proc is --declare sal_v emp.sal%type; emp_no emp.empno%type; sal_total number(10); begin select sal,empno into sal_v,emp_no from emp where empno=10; if(emp_no=10) then sal_total:=sal_v+1000; else sal_total:=sal_v+2000; end if; dbms_output.put_line('salary of employee id ' emp_no ' is ' sal_total); end;

11 CREATE OR REPLACE TRIGGER emp_audit BEFORE INSERT OR DELETE OR UPDATE ON emp FOR EACH ROW ENABLE DECLARE v_user varchar2(30); v_date varchar2(30); SELECT user,to_char(sysdate,'dd-mon-yy HH24:MI:SS') INTO v_user,v_date FROM DUAL; IF INSERTING THEN INSERT INTO emp_audit(new_name,old_name,user_name,entry_date,opera;on ) values(:new.ename,null,v_user,v_date,'insert'); ELSIF DELETING THEN INSERT INTO emp_audit(new_name,old_name,user_name,entry_date,opera;on ) values(null, :OLD.ename,v_user,v_date,'update'); ELSIF UPDATING THEN INSERT INTO emp_audit(new_name,old_name,user_name,entry_date,opera;on ) values(:new.ename, :OLD.ENAME,v_user,v_date,'delete'); CREATE OR REPLACE FUNCTION check_sal(emp_id emp.empno %TYPE) RETURN varchar2 IS dept_id emp.deptno%type; salary emp.sal%type; avg_sal emp.sal%type; output varchar2(50); SELECT sal INTO salary FROM emp WHERE empno=emp_id; SELECT avg(sal) INTO avg_sal FROM emp; IF salary > avg_sal THEN return 'salary of employee is greater than average salary'; RETURN 'salary of employee is less than average salary';

12 CREATE or REPLACE PROCEDURE proc_bonus IS --DECLARE bonus number(5,2); sal emp.sal%type; CURSOR c_emp_dept IS SELECT e.ename,e.sal,d.deptno,d.loc FROM emp e join dept d ON e.deptno=d.deptno; v_emp_dept c_emp_dept%rowtype; OPEN c_emp_dept; LOOP FETCH c_emp_dept into v_emp_dept; IF(v_emp_dept.deptno=10) THEN CASE v_emp_dept.loc WHEN 'NEW YORK' THEN sal:=v_emp_dept.sal+1000; WHEN 'DALLAS' THEN sal:=v_emp_dept.sal+500; WHEN 'CHICAGO' THEN sal:=v_emp_dept.sal+800; sal:=v_emp_dept.sal; END CASE; DBMS_OUTPUT.PUT_LINE('Employee ' v_emp_dept.ename ' total salary is ' sal); sal:=v_emp_dept.sal+600; EXIT WHEN c_emp_dept%nowound; END LOOP; Create or replace type emp_ids is varray(10) of number(5); create or replace procedure total_emp(emp_id in emp_ids) is --declare sal_v emp.sal%type; sal_total number(5); emp_no emp.empno%type; cursor emp_cur is select sal,empno from emp where empno in(select column_value from table(emp_id)); emp_v emp_cur%rowtype; begin open emp_cur; loop --select sal,empno into sal_v,emp_no from emp_cur ; fetch emp_cur into emp_v; if(emp_v.empno=10) then sal_total:=emp_v.sal+1000; else sal_total:=emp_v.sal+2000; end if; exit when emp_cur%nowound; --update emp set sal=sal_total where empno=60; dbms_output.put_line('total salary of employee id ' emp_v.empno ' is ' sal_total); dbms_output.put_line(sal_total); end loop; end; Create type emp_ids is varray(10) of number(5);

13 CREATE OR REPLACE FUNCTION check_sal(emp_id emp.empno%type) RETURN number IS dept_id emp.deptno%type; salary emp.sal%type; avg_sal emp.sal%type; emp_no emp.empno%type; output varchar2(50); SELECT sal,empno INTO salary,emp_no FROM emp WHERE empno=emp_id; SELECT avg(sal) INTO avg_sal FROM emp; IF salary > avg_sal THEN return 1; --return 'salary of employee ' emp_no ' is greater than average salary'; RETURN 0; create or replace procedure total_emp(emp_id in emp_ids) is --declare sal_v emp.sal%type; sal_total number(5); emp_no emp.empno%type; cursor emp_cur is select sal,empno from emp where empno in(select column_value from table(emp_id)); emp_v emp_cur%rowtype; begin open emp_cur; loop --select sal,empno into sal_v,emp_no from emp_cur ; fetch emp_cur into emp_v; if(check_sal(emp_v.empno)=0) then if(emp_v.empno=10) then sal_total:=emp_v.sal+1000; else sal_total:=emp_v.sal+2000; end if; else sal_total:=emp_v.sal; end if; exit when emp_cur%nowound; --update emp set sal=sal_total where empno=60; dbms_output.put_line('total salary of employee id ' emp_v.empno ' is ' sal_total); dbms_output.put_line(sal_total); end loop; end;

14 Package: A package is a database object that groups logically related named PLSQL blocks. A package will have two mandatory parts: 1. Package specifica;on: Specifica;on is the interface to the package. It just declares the type,variables,constants,cursors and subprograms that can be referenced outside the package. 2. Package body: Package body has the codes for various methods declared in the package speciica;on and other private variables Notes: Dba_errors is used to retrieve informa;on about the errors associated with the object. Dba_Dependencies gives informa;on about dependent objects. Alter <procedurefunc;ontriggerpackageview> compile to recompile the the invalid object. Drop <object-type> <object-name> to drop the objects. Execute <procedure-name>[(<input-argument>)] to execute a stored procedure. Set serveroutput on should be executed to display the output message from dbms_output.put_line. create <object-type> privilege should be granted to a user to create a specific object type. Select <func;on-name>[(<input-argument>)] from dual to execute a procedure. Execute <package_name>.<procedurefunc;on>[(<input-arguments>)] used to execute a subprogram of a package.

15 create or replace package demo_pkg AS procedure total_emp(emp_id in emp_ids); func;on check_sal(emp_id emp.empno%type) return number; end demo_pkg; create or replace package body demo_pkg as procedure total_emp(emp_id in emp_ids) is --declare sal_v emp.sal%type; sal_total number(5); emp_no emp.empno%type; cursor emp_cur is select sal,empno from emp where empno in (select column_value from table(emp_id)); emp_v emp_cur%rowtype; begin open emp_cur; loop --select sal,empno into sal_v,emp_no from emp_cur ; fetch emp_cur into emp_v; if(check_sal(emp_v.empno)=0) then if(emp_v.empno=10) then sal_total:=emp_v.sal+1000; else sal_total:=emp_v.sal+2000; end if; else sal_total:=emp_v.sal; end if; exit when emp_cur%nowound; --update emp set sal=sal_total where empno=60; dbms_output.put_line('total salary of employee id ' emp_v.empno ' is ' sal_total); dbms_output.put_line(sal_total); end loop; end total_emp; FUNCTION check_sal(emp_id emp.empno%type) RETURN number IS dept_id emp.deptno%type; salary emp.sal%type; avg_sal emp.sal%type; emp_no emp.empno%type; output varchar2(50); SELECT sal,empno INTO salary,emp_no FROM emp WHERE empno=emp_id; SELECT avg(sal) INTO avg_sal FROM emp; IF salary > avg_sal THEN return 1; RETURN 0; END check_sal; end demo_pkg;

PL/SQL is a combination of SQL along with the procedural features of programming languages.

PL/SQL is a combination of SQL along with the procedural features of programming languages. (24 Marks) 5.1 What is PLSQL? PLSQL stands for Procedural Language extension of SQL. PLSQL is a combination of SQL along with the procedural features of programming languages. It was developed by Oracle

More information

UNIT-IV (Relational Database Language, PL/SQL)

UNIT-IV (Relational Database Language, PL/SQL) UNIT-IV (Relational Database Language, PL/SQL) Section-A (2 Marks) Important questions 1. Define (i) Primary Key (ii) Foreign Key (iii) unique key. (i)primary key:a primary key can consist of one or more

More information

ADVANTAGES. Via PL/SQL, all sorts of calculations can be done quickly and efficiently without use of Oracle engine.

ADVANTAGES. Via PL/SQL, all sorts of calculations can be done quickly and efficiently without use of Oracle engine. 1 PL/SQL INTRODUCTION SQL does not have procedural capabilities. SQL does not provide the programming techniques of condition checking, looping and branching that is required for data before permanent

More information

ORACLE VIEWS ORACLE VIEWS. Techgoeasy.com

ORACLE VIEWS ORACLE VIEWS. Techgoeasy.com ORACLE VIEWS ORACLE VIEWS Techgoeasy.com 1 Oracle VIEWS WHAT IS ORACLE VIEWS? -A view is a representation of data from one or more tables or views. -A view is a named and validated SQL query which is stored

More information

RDBMS - PL SQL - Topic 5 - MSBTE QUESTIONS AND ANSWERS

RDBMS - PL SQL - Topic 5 - MSBTE QUESTIONS AND ANSWERS RDBMS - PL SQL - Topic 5 - MSBTE QUESTIONS AND ANSWERS SUMMER 2017 Q. Describe Exception handling. Explain with example. 4 Marks Exception Handling: Exception is nothing but an error. Exception can be

More information

Overview of PL/SQL. About PL/SQL. PL/SQL Environment. Benefits of PL/SQL. Integration

Overview of PL/SQL. About PL/SQL. PL/SQL Environment. Benefits of PL/SQL. Integration About PL/ Overview of PL/ PL/ is an extension to with design features of programming languages. Data manipulation and query statements of are included within procedural units of code. PL/ Environment Benefits

More information

PL/SQL. Exception. When the PL/SQL engine cannot execute the PLSQL block it raise an error. Every Oracle error has an error number

PL/SQL. Exception. When the PL/SQL engine cannot execute the PLSQL block it raise an error. Every Oracle error has an error number PL/SQL Exception When the PL/SQL engine cannot execute the PLSQL block it raise an error. Every Oracle error has an error number Exceptions must be handled by name. PL/SQL predefines some common Oracle

More information

Question: Which statement would you use to invoke a stored procedure in isql*plus?

Question: Which statement would you use to invoke a stored procedure in isql*plus? What are the two types of subprograms? procedure and function Which statement would you use to invoke a stored procedure in isql*plus? EXECUTE Which SQL statement allows a privileged user to assign privileges

More information

The PL/SQL Engine: PL/SQL. A PL/SQL Block: Declaration Section. Execution Section. Declaration Section 3/24/2014

The PL/SQL Engine: PL/SQL. A PL/SQL Block: Declaration Section. Execution Section. Declaration Section 3/24/2014 PL/SQL The PL/SQL Engine: PL/SQL stands for Procedural Language extension of SQL. PL/SQL is a combination of SQL along with the procedural features of programming languages. It was developed by Oracle

More information

Procedural Language Structured Query Language (PL/SQL)

Procedural Language Structured Query Language (PL/SQL) The Islamic University of Gaza Faculty of Engineering Dept. of Computer Engineering Database Lab (ECOM 4113) Lab 7 Procedural Language Structured Query Language (PL/SQL) Eng. Ibraheem Lubbad Structured

More information

5. Single-row function

5. Single-row function 1. 2. Introduction Oracle 11g Oracle 11g Application Server Oracle database Relational and Object Relational Database Management system Oracle internet platform System Development Life cycle 3. Writing

More information

Table of Contents. PDF created with FinePrint pdffactory Pro trial version

Table of Contents. PDF created with FinePrint pdffactory Pro trial version Table of Contents Course Description The SQL Course covers relational database principles and Oracle concepts, writing basic SQL statements, restricting and sorting data, and using single-row functions.

More information

UNIT II PL / SQL AND TRIGGERS

UNIT II PL / SQL AND TRIGGERS UNIT II PL / SQL AND 1 TRIGGERS TOPIC TO BE COVERED.. 2.1 Basics of PL / SQL 2.2 Datatypes 2.3 Advantages 2.4 Control Structures : Conditional, Iterative, Sequential 2.5 Exceptions: Predefined Exceptions,User

More information

PL/SQL Lab Exercises and Examples

PL/SQL Lab Exercises and Examples PLSQL Lab Exercises and Examples i Table of Contents PLSQL Overview... 1 Features of PLSQL... 1 Advantages of PLSQL... 2 Environment... 3 Step 1... 3 Step 2... 4 Step 3... 4 Step 4... 5 Step 5... 6 Step

More information

Introduction to Computer Science and Business

Introduction to Computer Science and Business Introduction to Computer Science and Business The Database Programming with PL/SQL course introduces students to the procedural language used to extend SQL in a programatic manner. This course outline

More information

2. Programming written ( main theme is to test our data structure knowledge, proficiency

2. Programming written ( main theme is to test our data structure knowledge, proficiency ORACLE Job Placement Paper Paper Type : General - other 1. Tech + Aptitude written 2. Programming written ( main theme is to test our data structure knowledge, proficiency sorting searching algorithms

More information

ORACLE Job Placement Paper. Paper Type : General - other

ORACLE Job Placement Paper. Paper Type : General - other ORACLE Job Placement Paper Paper Type : General - other 1. Tech + Aptitude written 2. Programming written ( main theme is to test our data structure knowledge, proficiency sorting searching algorithms

More information

Sample Test #1 Questions

Sample Test #1 Questions Sample Test #1 Questions 1. Fibonacci numbers & Iteration Structures/using elsif a. Another program to generate Fibonacci numbers b. Makes use of the elsif selection structure c. It saves us of repeated

More information

Contents I Introduction 1 Introduction to PL/SQL iii

Contents I Introduction 1 Introduction to PL/SQL iii Contents I Introduction Lesson Objectives I-2 Course Objectives I-3 Human Resources (HR) Schema for This Course I-4 Course Agenda I-5 Class Account Information I-6 Appendixes Used in This Course I-7 PL/SQL

More information

4 Application Programming

4 Application Programming 4 Application Programming 4.1 PL/SQL 4.1.1 Introduction The development of database applications typically requires language constructs similar to those that can be found in programming languages such

More information

4 Application Programming

4 Application Programming 4 Application Programming 4.1 PL/SQL 4.1.1 Introduction The development of database applications typically requires language constructs similar to those that can be found in programming languages such

More information

Slides by: Ms. Shree Jaswal

Slides by: Ms. Shree Jaswal Slides by: Ms. Shree Jaswal A trigger is a statement that is executed automatically by the system as a side effect of a modification to the database. To design a trigger mechanism, we must: Specify the

More information

Question Bank PL/SQL Fundamentals-I

Question Bank PL/SQL Fundamentals-I Question Bank PL/SQL Fundamentals-I UNIT-I Fundamentals of PL SQL Introduction to SQL Developer, Introduction to PL/SQL, PL/SQL Overview, Benefits of PL/SQL, Subprograms, Overview of the Types of PL/SQL

More information

ORACLE: PL/SQL Programming

ORACLE: PL/SQL Programming %ROWTYPE Attribute... 4:23 %ROWTYPE... 2:6 %TYPE... 2:6 %TYPE Attribute... 4:22 A Actual Parameters... 9:7 Actual versus Formal Parameters... 9:7 Aliases... 8:10 Anonymous Blocks... 3:1 Assigning Collection

More information

PL/SQL-TYCS. The 'Hello World' Example

PL/SQL-TYCS. The 'Hello World' Example PLSQL-TYCS In this chapter, we will discuss the Basic Syntax of PLSQL which is a block-structured language; this means that the PLSQL programs are divided and written in logical blocks of code. Each block

More information

RDBMS Topic 4 Adv. SQL, MSBTE Questions and Answers ( 12 Marks)

RDBMS Topic 4 Adv. SQL, MSBTE Questions and Answers ( 12 Marks) 2017 RDBMS Topic 4 Adv. SQL, MSBTE Questions and Answers ( 12 Marks) 2016 Q. What is view? Definition of view: 2 marks) Ans : View: A view is a logical extract of a physical relation i.e. it is derived

More information

Lecture 08. Spring 2018 Borough of Manhattan Community College

Lecture 08. Spring 2018 Borough of Manhattan Community College Lecture 08 Spring 2018 Borough of Manhattan Community College 1 The SQL Programming Language Recent versions of the SQL standard allow SQL to be embedded in high-level programming languages to help develop

More information

SQL- Updates, Asser0ons and Views

SQL- Updates, Asser0ons and Views SQL- Updates, Asser0ons and Views Data Defini0on, Constraints, and Schema Changes Used to CREATE, DROP, and ALTER the descrip0ons of the tables (rela0ons) of a database CREATE TABLE In SQL2, can use the

More information

Vendor: Oracle. Exam Code: 1Z Exam Name: Oracle Database 11g: Program with PL/ SQL. Version: Demo

Vendor: Oracle. Exam Code: 1Z Exam Name: Oracle Database 11g: Program with PL/ SQL. Version: Demo Vendor: Oracle Exam Code: 1Z0-144 Exam Name: Oracle Database 11g: Program with PL/ SQL Version: Demo QUESTION NO: 1 View the Exhibit to examine the PL/SQL code: SREVROUPUT is on for the session. Which

More information

Now, we can refer to a sequence without having to use any SELECT command as follows:

Now, we can refer to a sequence without having to use any SELECT command as follows: Enhancement in 11g Database PL/SQL Sequence: Oracle Database 11g has now provided support for Sequence in PL/SQL. Earlier to get a number from a sequence in PL/SQL we had to use SELECT command with DUAL

More information

Misc. Triggers Views Roles Sequences - Synonyms. Eng. Mohammed Alokshiya. Islamic University of Gaza. Faculty of Engineering

Misc. Triggers Views Roles Sequences - Synonyms. Eng. Mohammed Alokshiya. Islamic University of Gaza. Faculty of Engineering Islamic University of Gaza Faculty of Engineering Computer Engineering Dept. Database Lab (ECOM 4113) Lab 9 Misc. Triggers Views Roles Sequences - Synonyms Eng. Mohammed Alokshiya December 7, 2014 Views

More information

Programming the Database

Programming the Database Programming the Database Today s Lecture 1. Stored Procedures 2. Functions BBM471 Database Management Systems Dr. Fuat Akal akal@hacettepe.edu.tr 3. Cursors 4. Triggers 5. Dynamic SQL 2 Stored Procedures

More information

PL/SQL is one of three key programming languages embedded in the Oracle Database, along with SQL itself and Java.

PL/SQL is one of three key programming languages embedded in the Oracle Database, along with SQL itself and Java. About the Tutorial PLSQL is a combination of SQL along with the procedural features of programming languages. It was developed by Oracle Corporation in the early 90's to enhance the capabilities of SQL.

More information

CS6312 DATABASE MANAGEMENT SYSTEMS LABORATORY L T P C

CS6312 DATABASE MANAGEMENT SYSTEMS LABORATORY L T P C CS6312 DATABASE MANAGEMENT SYSTEMS LABORATORY L T P C 0 0 3 2 LIST OF EXPERIMENTS: 1. Creation of a database and writing SQL queries to retrieve information from the database. 2. Performing Insertion,

More information

Oracle Database 11g: SQL and PL/SQL Fundamentals

Oracle Database 11g: SQL and PL/SQL Fundamentals Oracle University Contact Us: +33 (0) 1 57 60 20 81 Oracle Database 11g: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn In this course, students learn the fundamentals of SQL and PL/SQL

More information

Data Base Management System LAB LECTURES

Data Base Management System LAB LECTURES Data Base Management System LAB LECTURES Taif University faculty of Computers and Information Technology First Semester 34-1435 H A. Arwa Bokhari & A. Khlood Alharthi & A. Aamal Alghamdi OBJECTIVE u Stored

More information

1Z0-144 Q&As Oracle Database 11g: Program with PL/ SQL

1Z0-144 Q&As Oracle Database 11g: Program with PL/ SQL CertBus.com 1Z0-144 Q&As Oracle Database 11g: Program with PL/ SQL Pass Oracle 1Z0-144 Exam with 100% Guarantee Free Download Real Questions & Answers PDF and VCE file from: 100% Passing Guarantee 100%

More information

Trigger is a stored procedure which is called implicitly by oracle engine whenever a insert, update or delete statement is fired.

Trigger is a stored procedure which is called implicitly by oracle engine whenever a insert, update or delete statement is fired. Aim:- TRIGGERS Trigger is a stored procedure which is called implicitly by oracle engine whenever a insert, update or delete statement is fired. Advantages of database triggers: ---> Data is generated

More information

PL/SQL Block structure

PL/SQL Block structure PL/SQL Introduction Disadvantage of SQL: 1. SQL does t have any procedural capabilities. SQL does t provide the programming technique of conditional checking, looping and branching that is vital for data

More information

Triggers- View-Sequence

Triggers- View-Sequence The Islamic University of Gaza Faculty of Engineering Dept. of Computer Engineering Database Lab (ECOM 4113) Lab 9 Triggers- View-Sequence Eng. Ibraheem Lubbad Triggers: A trigger is a PL/SQL block or

More information

Oracle PLSQL. Course Summary. Duration. Objectives

Oracle PLSQL. Course Summary. Duration. Objectives Oracle PLSQL Course Summary Use conditional compilation to customize the functionality in a PL/SQL application without removing any source code Design PL/SQL packages to group related constructs Create

More information

2 PL/SQL - fundamentals Variables and Constants Operators SQL in PL/SQL Control structures... 7

2 PL/SQL - fundamentals Variables and Constants Operators SQL in PL/SQL Control structures... 7 Table of Contents Spis treści 1 Introduction 1 2 PLSQL - fundamentals 1 2.1 Variables and Constants............................ 2 2.2 Operators.................................... 5 2.3 SQL in PLSQL.................................

More information

Topics Fundamentals of PL/SQL, Integration with PROIV SuperLayer and use within Glovia

Topics Fundamentals of PL/SQL, Integration with PROIV SuperLayer and use within Glovia Topics Fundamentals of PL/SQL, Integration with PROIV SuperLayer and use within Glovia 1. Creating a Database Alias 2. Introduction to SQL Relational Database Concept Definition of Relational Database

More information

INDEX. 1 Introduction. 2 Types of Cursors 2.1 Explicit cursor 2.2 Attributes 2.3 Implicit cursor 2.4 Attributes. 3 Parameterized cursor

INDEX. 1 Introduction. 2 Types of Cursors 2.1 Explicit cursor 2.2 Attributes 2.3 Implicit cursor 2.4 Attributes. 3 Parameterized cursor INDEX 1 Introduction 2 Types of Cursors 2.1 Explicit cursor 2.2 Attributes 2.3 Implicit cursor 2.4 Attributes 3 Parameterized cursor INTRODUCTION what is cursor? we have seen how oracle executes an SQL

More information

5 Integrity Constraints and Triggers

5 Integrity Constraints and Triggers 5 Integrity Constraints and Triggers 5.1 Integrity Constraints In Section 1 we have discussed three types of integrity constraints: not null constraints, primary keys, and unique constraints. In this section

More information

Lesson B Objectives IF/THEN. Chapter 4B: More Advanced PL/SQL Programming

Lesson B Objectives IF/THEN. Chapter 4B: More Advanced PL/SQL Programming Chapter 4B: More Advanced PL/SQL Programming Monday 2/23/2015 Abdou Illia MIS 4200 - Spring 2015 Lesson B Objectives After completing this lesson, you should be able to: Create PL/SQL decision control

More information

Creating and Managing Tables Schedule: Timing Topic

Creating and Managing Tables Schedule: Timing Topic 9 Creating and Managing Tables Schedule: Timing Topic 30 minutes Lecture 20 minutes Practice 50 minutes Total Objectives After completing this lesson, you should be able to do the following: Describe the

More information

RDBMS Using Oracle. Use of IN OUT

RDBMS Using Oracle. Use of IN OUT RDBMS Using Oracle PL/SQL Procedural Language/Structural Query Language PL/SQL Procedures Kamran.Munir@niit.edu.pk Use of IN OUT Example: Format phone Procedure 1 Example: Format phone Procedure Input

More information

Oracle Database: Introduction to SQL/PLSQL Accelerated

Oracle Database: Introduction to SQL/PLSQL Accelerated Oracle University Contact Us: Landline: +91 80 67863899 Toll Free: 0008004401672 Oracle Database: Introduction to SQL/PLSQL Accelerated Duration: 5 Days What you will learn This Introduction to SQL/PLSQL

More information

CS 4604: Introduc0on to Database Management Systems. B. Aditya Prakash Lecture #4: SQL---Part 2

CS 4604: Introduc0on to Database Management Systems. B. Aditya Prakash Lecture #4: SQL---Part 2 CS 4604: Introduc0on to Database Management Systems B. Aditya Prakash Lecture #4: SQL---Part 2 Overview - detailed - SQL DML other parts: views modifications joins DDL constraints Prakash 2016 VT CS 4604

More information

Objectives. After completing this lesson, you should be able to do the following:

Objectives. After completing this lesson, you should be able to do the following: Objectives After completing this lesson, you should be able to do the following: Describe the types of problems that subqueries can solve Define subqueries List the types of subqueries Write single-row

More information

PL / SQL Basics. Chapter 3

PL / SQL Basics. Chapter 3 PL / SQL Basics Chapter 3 PL / SQL Basics PL / SQL block Lexical units Variable declarations PL / SQL types Expressions and operators PL / SQL control structures PL / SQL style guide 2 PL / SQL Block Basic

More information

Oracle PL SQL Training & Certification

Oracle PL SQL Training & Certification About Intellipaat Intellipaat is a fast-growing professional training provider that is offering training in over 150 most sought-after tools and technologies. We have a learner base of 600,000 in over

More information

Sample Question Paper

Sample Question Paper Sample Question Paper Marks : 70 Time:3 Hour Q.1) Attempt any FIVE of the following. a) List any four applications of DBMS. b) State the four database users. c) Define normalization. Enlist its type. d)

More information

Code No. 90 Please check that this question paper contains 6 printed pages. Code number given on the right hand side of the question paper should be written on the title page of the answer-book by the

More information

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Actual4Test.   Actual4test - actual test exam dumps-pass for IT exams Actual4Test http://www.actual4test.com Actual4test - actual test exam dumps-pass for IT exams Exam : 1z0-144 Title : Oracle Database 11g: Program with PL/SQL Vendor : Oracle Version : DEMO Get Latest &

More information

Table of Contents. Oracle SQL PL/SQL Training Courses

Table of Contents. Oracle SQL PL/SQL Training Courses Table of Contents Overview... 7 About DBA University, Inc.... 7 Eligibility... 8 Pricing... 8 Course Topics... 8 Relational database design... 8 1.1. Computer Database Concepts... 9 1.2. Relational Database

More information

CHAPTER: 4 ADVANCE SQL: SQL PERFORMANCE TUNING (12 Marks)

CHAPTER: 4 ADVANCE SQL: SQL PERFORMANCE TUNING (12 Marks) (12 Marks) 4.1 VIEW View: Views are virtual relations mainly used for security purpose, and can be provided on request by a particular user. A view can contain all rows of a table or select rows from a

More information

The following practical s have to be performed and journal should contain the output with aim as per syllabus. This is just for reference

The following practical s have to be performed and journal should contain the output with aim as per syllabus. This is just for reference The following practical s have to be performed and journal should contain the output with aim as per syllabus. This is just for reference Solution for cursors 1. Write PLSQL block to create a cursor to

More information

Creating Other Schema Objects. Copyright 2004, Oracle. All rights reserved.

Creating Other Schema Objects. Copyright 2004, Oracle. All rights reserved. Creating Other Schema Objects Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Create simple and complex views Retrieve data

More information

Meet MariaDB Vicențiu Ciorbaru Software MariaDB Foundation * * 2017 MariaDB Foundation

Meet MariaDB Vicențiu Ciorbaru Software MariaDB Foundation * * 2017 MariaDB Foundation Meet MariaDB 10.3 Vicențiu Ciorbaru Software Engineer @ MariaDB Foundation vicentiu@mariadb.org * * What is MariaDB? MariaDB 5.1 (Feb 2010) - Making builds free MariaDB 5.2 (Nov 2010) - Community features

More information

1 Prepared By Heena Patel (Asst. Prof)

1 Prepared By Heena Patel (Asst. Prof) Topic 1 1. What is difference between Physical and logical data 3 independence? 2. Define the term RDBMS. List out codd s law. Explain any three in detail. ( times) 3. What is RDBMS? Explain any tow Codd

More information

RNDr. Michal Kopecký, Ph.D. Department of Software Engineering, Faculty of Mathematics and Physics, Charles University in Prague

RNDr. Michal Kopecký, Ph.D. Department of Software Engineering, Faculty of Mathematics and Physics, Charles University in Prague course: Database Applications (NDBI026) WS2015/16 RNDr. Michal Kopecký, Ph.D. Department of Software Engineering, Faculty of Mathematics and Physics, Charles University in Prague Views Creating views Using

More information

Introduction to SQL/PLSQL Accelerated Ed 2

Introduction to SQL/PLSQL Accelerated Ed 2 Oracle University Contact Us: Local: 1800 103 4775 Intl: +91 80 67863102 Introduction to SQL/PLSQL Accelerated Ed 2 Duration: 5 Days What you will learn This Introduction to SQL/PLSQL Accelerated course

More information

Oracle Database: Program with PL/SQL

Oracle Database: Program with PL/SQL Oracle University Contact Us: Local: 1800 425 8877 Intl: +91 80 4108 4700 Oracle Database: Program with PL/SQL Duration: 50 Hours What you will learn This course introduces students to PL/SQL and helps

More information

SQL Interview Questions

SQL Interview Questions SQL Interview Questions SQL stands for Structured Query Language. It is used as a programming language for querying Relational Database Management Systems. In this tutorial, we shall go through the basic

More information

Oracle Database: SQL and PL/SQL Fundamentals NEW

Oracle Database: SQL and PL/SQL Fundamentals NEW Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training delivers the fundamentals of SQL and PL/SQL along with the

More information

Section I : Section II : Question 1. Question 2. Question 3.

Section I : Section II : Question 1. Question 2. Question 3. Computer Science, 60-415 Midterm Examiner: Ritu Chaturvedi Date: Oct. 27 th, 2011 Student Name: Student Number: INSTRUCTIONS (Please Read Carefully) Examination Period is 1 hour and 15 minutes Answer all

More information

DumpLeader. Advance your career with IT Cert! Ensure Success with Money back Guarantee

DumpLeader.  Advance your career with IT Cert! Ensure Success with Money back Guarantee DumpLeader Ensure Success with Money back Guarantee Advance your career with IT Cert! Exam : 1Z0-001 Title : 9i Internet Application Developer Introduction to Oracle: SQL and PL/SQL Vendors : Oracle Version

More information

M.C.A. (CBCS) Sem.-III Examination November-2013 CCA-3004 : Database Concepts and Tools. Faculty Code: 003 Subject Code:

M.C.A. (CBCS) Sem.-III Examination November-2013 CCA-3004 : Database Concepts and Tools. Faculty Code: 003 Subject Code: 003-007304 M.C.A. (CBCS) Sem.-III Examination November-2013 CCA-3004 : Database Concepts and Tools Faculty Code: 003 Subject Code: 007304 Time: 21/2 Hours] [Total Marks: 70 I. Answer the following multiple

More information

SQL. Char (30) can store ram, ramji007 or 80- b

SQL. Char (30) can store ram, ramji007 or 80- b SQL In Relational database Model all the information is stored on Tables, these tables are divided into rows and columns. A collection on related tables are called DATABASE. A named table in a database

More information

Oracle Database: SQL and PL/SQL Fundamentals Ed 2

Oracle Database: SQL and PL/SQL Fundamentals Ed 2 Oracle University Contact Us: Local: 1800 103 4775 Intl: +91 80 67863102 Oracle Database: SQL and PL/SQL Fundamentals Ed 2 Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals

More information

Oracle EXAM - 1Z Program with PL/SQL. Buy Full Product.

Oracle EXAM - 1Z Program with PL/SQL. Buy Full Product. Oracle EXAM - 1Z0-147 Program with PL/SQL Buy Full Product http://www.examskey.com/1z0-147.html Examskey Oracle 1Z0-147 exam demo product is here for you to test the quality of the product. This Oracle

More information

Oracle 1Z Oracle9i: Program with PL/SQL. Download Full Version :

Oracle 1Z Oracle9i: Program with PL/SQL. Download Full Version : Oracle 1Z0-147 Oracle9i: Program with PL/SQL Download Full Version : https://killexams.com/pass4sure/exam-detail/1z0-147 Answer: C QUESTION: 118 Which two describe a stored procedure? (Choose two.) A.

More information

Exam Actual. Higher Quality. Better Service! QUESTION & ANSWER

Exam Actual. Higher Quality. Better Service! QUESTION & ANSWER Higher Quality Better Service! Exam Actual QUESTION & ANSWER Accurate study guides, High passing rate! Exam Actual provides update free of charge in one year! http://www.examactual.com Exam : 1Z0-047 Title

More information

When a database trigger routine does not have to take place before the triggering event, which timing should you assign to the trigger?

When a database trigger routine does not have to take place before the triggering event, which timing should you assign to the trigger? Page 1 of 80 Item: 1 (Ref:1z0-147e.9.2.4) When a database trigger routine does not have to take place before the triggering event, which timing should you assign to the trigger? nmlkj ON nmlkj OFF nmlkj

More information

PLSQL Interview Questions :

PLSQL Interview Questions : PLSQL Interview Questions : In my previous articles I have explained the SQL interview questions,bi Interview questions which will give the best idea about the question that may ask in interview.in this

More information

1Z0-144.v Number: 1Z0-144 Passing Score: 800 Time Limit: 120 min File Version:

1Z0-144.v Number: 1Z0-144 Passing Score: 800 Time Limit: 120 min File Version: 1Z0-144.v12.39 Number: 1Z0-144 Passing Score: 800 Time Limit: 120 min File Version: 12.39 http://www.gratisexam.com/ Vendor: Oracle Exam Code: 1Z0-144 Exam Name: Oracle Database 11g: Program with PL/SQL

More information

Question No : 1 Which statement is true about triggers on data definition language (DDL) statements?

Question No : 1 Which statement is true about triggers on data definition language (DDL) statements? Volume: 103 Questions Question No : 1 Which statement is true about triggers on data definition language (DDL) statements? A. They can be used to track changes only to a table or index. B. They can be

More information

Oracle. SQL(Structured Query Language) Introduction of DBMS. Build In Function. Introduction of RDBMS. Grouping the Result of a Query

Oracle. SQL(Structured Query Language) Introduction of DBMS. Build In Function. Introduction of RDBMS. Grouping the Result of a Query Oracle SQL(Structured Query Language) Introduction of DBMS Approach to Data Management Introduction to prerequisites File and File system Disadvantages of file system Introduction to TOAD and oracle 11g/12c

More information

ORACLE TRAINING. ORACLE Training Course syllabus ORACLE SQL ORACLE PLSQL. Oracle SQL Training Syllabus

ORACLE TRAINING. ORACLE Training Course syllabus ORACLE SQL ORACLE PLSQL. Oracle SQL Training Syllabus ORACLE TRAINING ORACLE Training Course syllabus ORACLE SQL ORACLE PLSQL Oracle SQL Training Syllabus Introduction to Oracle Database List the features of Oracle Database 11g Discuss the basic design, theoretical,

More information

Oracle Database 12c: Program with PL/SQL Duration: 5 Days Method: Instructor-Led

Oracle Database 12c: Program with PL/SQL Duration: 5 Days Method: Instructor-Led Oracle Database 12c: Program with PL/SQL Duration: 5 Days Method: Instructor-Led Course Description This training starts with an introduction to PL/SQL and then explores the benefits of this powerful programming

More information

INDEX. 1 Basic SQL Statements. 2 Restricting and Sorting Data. 3 Single Row Functions. 4 Displaying data from multiple tables

INDEX. 1 Basic SQL Statements. 2 Restricting and Sorting Data. 3 Single Row Functions. 4 Displaying data from multiple tables INDEX Exercise No Title 1 Basic SQL Statements 2 Restricting and Sorting Data 3 Single Row Functions 4 Displaying data from multiple tables 5 Creating and Managing Tables 6 Including Constraints 7 Manipulating

More information

Oracle PL/SQL - 12c & 11g [Basic PL/SQL & Advanced PL/SQL]

Oracle PL/SQL - 12c & 11g [Basic PL/SQL & Advanced PL/SQL] Chapter Overview of PL/SQL Programs Control Statements Using Loops within PLSQL Oracle PL/SQL - 12c & 11g [Basic PL/SQL & Advanced PL/SQL] Table of Contents Describe a PL/SQL program construct List the

More information

Sisteme Informatice şi Standarde Deschise (SISD) Curs 7 Standarde pentru programarea bazelor de date (1)

Sisteme Informatice şi Standarde Deschise (SISD) Curs 7 Standarde pentru programarea bazelor de date (1) Administrarea Bazelor de Date Managementul în Tehnologia Informaţiei Sisteme Informatice şi Standarde Deschise (SISD) 2009-2010 Curs 7 Standarde pentru programarea bazelor de date (1) 23.11.2009 Sisteme

More information

Oracle PLSQL Study Material ORACLE & PL/SQL STUDY MATERIAL

Oracle PLSQL Study Material ORACLE & PL/SQL STUDY MATERIAL ORACLE & PL/SQL STUDY MATERIAL Table of Contents 1 OVERVIEW OF ORACLE... 5 1.1 THE DATABASE... 5 1.2 THE ORACLE INSTANCE... 8 2 BASIC ORACLE OBJECTS... 12 3 TRANSACTIONS IN ORACLE... 14 4 OVERVIEW OF PL/SQL...

More information

M.SC(IT) I YEAR( ) CORE: ADVANCED DBMS-163B Semester : I Multiple Choice Questions

M.SC(IT) I YEAR( ) CORE: ADVANCED DBMS-163B Semester : I Multiple Choice Questions M.SC(IT) I YEAR(2017-2019) CORE: ADVANCED DBMS-163B Semester : I Multiple Choice Questions 1) storage lose contents when power is switched off. a) Volatile storage. b) Nonvolatile storage. c) Disk storage.

More information

Oracle Exam 1z0-144 Oracle Database 11g: Program with PL/SQL Version: 8.5 [ Total Questions: 103 ]

Oracle Exam 1z0-144 Oracle Database 11g: Program with PL/SQL Version: 8.5 [ Total Questions: 103 ] s@lm@n Oracle Exam 1z0-144 Oracle Database 11g: Program with PL/SQL Version: 8.5 [ Total Questions: 103 ] Question No : 1 What is the correct definition of the persistent state of a packaged variable?

More information

Control Structures. Control Structures 3-1

Control Structures. Control Structures 3-1 3 Control Structures One ship drives east and another drives west With the selfsame winds that blow. Tis the set of the sails and not the gales Which tells us the way to go. Ella Wheeler Wilcox This chapter

More information

Oracle PLSQL Training Syllabus

Oracle PLSQL Training Syllabus Oracle PLSQL Training Syllabus Introduction Course Objectives Course Agenda Human Resources (HR) Schema Introduction to SQL Developer Introduction to PL/SQL PL/SQL Overview Benefits of PL/SQL Subprograms

More information

Oracle SQL & PL SQL Course

Oracle SQL & PL SQL Course Oracle SQL & PL SQL Course Complete Practical & Real-time Training Job Support Complete Practical Real-Time Scenarios Resume Preparation Lab Access Training Highlights Placement Support Support Certification

More information

Oracle EXAM 1Z0-144 Oracle Database 11g: Program with PL/SQL

Oracle EXAM 1Z0-144 Oracle Database 11g: Program with PL/SQL Oracle EXAM 1Z0-144 Oracle Database 11g: Program with PL/SQL Total Questions: 80 Question: 1 View the Exhibit to examine the PL/SQL code: SREVROUPUT is on for the session. Which statement Is true about

More information

PROCEDURAL DATABASE PROGRAMMING ( PL/SQL AND T-SQL)

PROCEDURAL DATABASE PROGRAMMING ( PL/SQL AND T-SQL) Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 5 Database Programming PROCEDURAL DATABASE PROGRAMMING ( PL/SQL AND T-SQL) AGENDA 7. Stored Procedures 7.1 Introduction to Stored

More information

Oracle Class VII More on Exception Sequence Triggers RowID & Rownum Views

Oracle Class VII More on Exception Sequence Triggers RowID & Rownum Views Oracle Class VII More on Exception Sequence Triggers RowID & Rownum Views Sequence An Oracle sequence is an Oracle database object that can be used to generate unique numbers. You can use sequences to

More information

Oracle Internal & Oracle Academy

Oracle Internal & Oracle Academy D49990GC11 Edition 1.1 April 2009 D59428 Oracle Database 11g: PL/SQL Fundamentals Student Guide Authors Tulika Srivastava Lauran K. Serhal Technical Contributors and Reviewers Tom Best Christoph Burandt

More information

SQL is an English like language consisting of commands to store, retrieve, maintain & regulate access to your database.

SQL is an English like language consisting of commands to store, retrieve, maintain & regulate access to your database. SQL SQL is an English like language consisting of commands to store, retrieve, maintain & regulate access to your database. SQL*Plus SQL*Plus is an application that recognizes & executes SQL commands &

More information

Oracle Database: Program with PL/SQL

Oracle Database: Program with PL/SQL Oracle University Contact Us: + 420 2 2143 8459 Oracle Database: Program with PL/SQL Duration: 5 Days What you will learn This Oracle Database: Program with PL/SQL training starts with an introduction

More information

1z Oracle Database SQL Expert

1z Oracle Database SQL Expert 1z0-047 Oracle Database SQL Expert Version 1.6 QUESTION NO: 1 Which three possible values can be set for the TIME_ZONE session parameter by using the ALTER SESSION command? (Choose three.) E. 'os' local

More information

Databases - 4. Other relational operations and DDL. How to write RA expressions for dummies

Databases - 4. Other relational operations and DDL. How to write RA expressions for dummies Databases - 4 Other relational operations and DDL How to write RA expressions for dummies Step 1: Identify the relations required and CP them together Step 2: Add required selections to make the CP Step

More information

Oracle Database: Program with PL/SQL Ed 2

Oracle Database: Program with PL/SQL Ed 2 Oracle University Contact Us: +38 61 5888 820 Oracle Database: Program with PL/SQL Ed 2 Duration: 5 Days What you will learn This Oracle Database: Program with PL/SQL training starts with an introduction

More information