Exforsys.com
 
Home Tech Articles PL SQL
 

Step by Step Oracle PL-SQL Tutorial

 

This introductory tutorial to PL/SQL will help you to understand the basic concepts of PL/SQL.Please review the following tutorials and practice the sample SQL Statements on your local Oracle Database. Please note that you must learn these basic things before we actually start getting in to Advanced Oracle Concepts in the OCP Certification track. Fell free to print the articles for offline preparation and post any questions in the discussion board.


SQL, PLSQL, and SQL SQL *Plus - Introduction

We are excited to let you know that we are launching shortly The New Technology Learning Series. We will be starting with Oracle 9i: SQL, PLSQL, and SQL *Plus. Below is the course schedule by week. Please let us know if you have suggestions.


SQL, PLSQL, and SQL *Plus - Software Installation and References

Before we actually start with the lessons, we need to install and setup Oracle on your pc to be able to practice. I would recommend all of you to install Oracle before you start with any of our lessons in the following weeks.



Introduction to Oracle 9i:SQL, PLSQL. and SQL *Plus

After completing this week’s section you will learn about the basic concepts on SQL, SQL *Plus and PL/SQL. Please use discussion board if you have any questions, we will help you with more details explanation. If you don’t understand and practice in the order we provide it will be difficult for you to learn Oracle.



This Week we will be learning about Creating PL/SQL Blocks which includes Declaration Section, Variables, Scope of Variables, Constants Records, Manipulating Data in PL/SQL and Using DML in PL/SQL .



PL/SQL Control Structures

This tutorial teaches about how to structure flow of control through a PL/SQL program. The control structures of PL/SQL are simple yet powerful. Control structures in PL/SQL can be divided into selection or conditional, iterative and sequential.



This tutorial covers Defining and Using Collections - Declaring, Initializing, and Referencing PL/SQL Collections and Collection Methods - Using the Collection Methods.




In this tutorial you will learn about indentifying PL/SQL Objects like Packages, Procedures and Functions using SQL Plus based examples and illustrations.

Read Next: Download Free Oracle SQL Developer



 

 

Comments


sp3kumar said:

  hi friends,
please any one give me the difference between natural join and eqi join.
dynamic view and static view


regards
Prakash

October 9, 2004, 5:23 am

vasusolix said:

  what is arrays and varrays in oracle
any example query tuning and user exceptions
April 2, 2007, 6:07 am

Rohan Deshpande said:

  can we force not null constrint. suppose i already have null values in a column. and after that i don't want to allow null values in a column. so is it possible

Regrads
Rohan
September 9, 2007, 12:28 am

RANJEET ROUT said:

  WHAT IS TRIGER ? What is the difference between static & dynamic Triger?
What is cursor ?Explain different types of Triger?
September 14, 2007, 4:17 am

Ranjit Kumar said:

  Any budy suggest me. how can use isql*plus our local system. And what configure is also requried.
March 31, 2008, 4:54 am

rafimoghal said:

  can any body tell me when materialized view is used,
July 22, 2008, 8:40 am

0 said:

  Can anyone send me some sort of document for basic pl/sql with exaples and then mastering it slowly ?
An immediate response would be appreciated !!!
January 16, 2009, 4:36 am

0 said:

  What is a procedure, function, trigger and package?
January 24, 2009, 8:31 am

surender singh said:

  how packages are created
January 31, 2009, 3:00 am

nirmal said:

  How business triggers are utilized in PL/SQL can anybody suggest me.
June 21, 2009, 11:13 pm

dinkar pavan said:

  The difference between natural join and equi-join is in natural join all the data can be retrived (didn't search for match) whereas in equi-join it search for exact match(the values present in two tables must be equal).
July 22, 2009, 8:11 am

mayuranathankj said:

  The difference between natural join is is the natural join we didn't using the condition and prefixes. We don't mention the common column. The common column is taken in the conditions are automatically.
But the equi join we compulsory using the prefixes and condition in where clause(The condition should get in the Equal To (=) operator).

Thank You
September 13, 2009, 11:19 pm

krishna kumar said:

  finally i m telling there is vast role of oracle that is pl/sql in big company.but i want to know, what should be coverage and limitation in pl/sql ,that covers whole big company requiremt,since pl/sql is not small thing and easy to cover whole thing.

Thanks & regards

krishna

mail id is sirat.kumar@yahoo.com
October 14, 2009, 8:14 am

srivalar said:

  Natural join Vs Equi join

Equi join:

1.In Equi join we have to specify the equal operator in its join condition.

eg: select dept.deptno from dept join emp on emp.deptno=dept.deptno;


2.It return the records, only if it matches the equality conditions.

3.In this the common column is repeated twice

eg:select * from employee inner join department on employee.departmentid = department.departmentid;

In this the equality condition is on the departmentid column.This appears twice.It can be reduced to a single column by 'using' clause.

eg:select * from employee inner join department using (departmentid);

In this a single department id column will be displayed.

Natural join:

1.We need not to specify column names for the join condition.It will automatically join the common column in the two tables.

eg:select deptno from dept natural join emp;

2.The output is normally greater than,equal to or lesser than the equality condition in Equi join.
eg: table representation for the natural join


Employee(Table 1)

Name EmpId DeptName

Harry 3415 Finance
Sally 2241 Sales
George 3401 Finance
Harriet 2202 Sales

Dept(Table 2)

DeptName Manager

Finance George
Sales Harriet
Production Charles

Employee Natural Join Dept

Name EmpId DeptName Manager
Harry 3415 Finance George
Sally 2241 Sales Harriet
George 3401 Finance George
Harriet 2202 Sales Harriet


eg:Equi Join Table representation.


Employee(Table 1)

Name EmpId DeptName
Harry 3415 Finance
Sally 2241 Sales
George 3401 Finance
Harriet 2202 Production

Dept(Table 2)

DeptName Manager
Sales Harriet
Production Charles

Employee Equi Join Dept

Name EmpId DeptName
Sally 2241 Sales
Harriet 2202 Production

Considering the two results.,The output of Natural Join is greater than the Equi Join output(The number of records displayed as result).

3.In Natural join no need of using the Clause Using like in Equi join(See the above example in Equi join).It can automatically consider the common column and display it only once in output.

Note:Equi join,Natural Join and Cross Join are subtypes of INNER JOIN.



October 26, 2009, 10:41 am

Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 

Subscribe via RSS


Get Daily Updates via Subscribe to Exforsys Free Training via email


Get Latest Free Training Updates delivered directly to your Inbox...

Enter your email address:


 

Subscribe to Exforsys Free Training via RSS
 

 
Partners -  Privacy and Legal Policy -  Site News -  Contact   Sitemap  

Copyright © 2000 - 2009 exforsys.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape