SQL, PL/SQL: FALL Semester 2013
SQL, PL/SQL: FALL Semester 2013
EDUCATION CONSULTANT
Contact No.
0335-919 7775,
0321-515 3403
www.oeconsultant.co.uk
Book
SQL, PL/SQL The Programming Language of Oracle
Third Edition By
Ivan Bayross
Course Outline
Chapter 1
Chapter 2
Chapter 3
Chapter 5
Chapter 7
Chapter 11
Chapter 12
Chapter 14
Chapter 15
Chapter 18
Database Concepts
Installation of Oracle 9i
Post Installation Steps
A Business Model for Retail Banking
Interactive SQL
SQL Performance Tuning
Security Management Using SQL
Advance Features in SQL * Plus
Introduction to Pl/SQL
PL/SQL Database Objects
What is Memory?
What is Store?
What is Knowledge?
What is Base?
What is Data?
What is Information?
What is Database?
How you recall the Data/Information
SQL, PL/SQL, Lecture 1 By Rana Umer
What is Management?
What is System?
What is Relationship/Relation?
What is Summarize/Normal/Simple?
What is Communication?
What is Language?
What is Database Language?
Database
A Database is collection of meaningful Data that is
organized so that it can easily be accessed, managed,
and updated.
DBMS Benefits
Relational Database
A Relational Database is a collection of Data items
organized as a set of formally-described Tables from which
data can be accessed or re-assembled in many different
ways without having to re-organize the Database Tables.
The Relational Database was invented by Edgar. F. Codd at
IBM in 1970.
Relational DBMS
RDBMS stores data in the form of related tables.
Requires few assumption
How data is related
How it will be extracted from Database(Viewed in
many ways)
Single Database can be spread across several tables.
SQL, PL/SQL, Lecture 1 By Rana Umer
RDBMS
Database Keys
A key is a field that you use to sort data. It
can also be called a key field
There are three main types of keys,
1.Primary keys
2.Foreign keys.
3.Candidate keys
Database Keys
Primary keys
Database Keys
Foreign keys
Database Keys
Candidate keys
Database Keys
Some others Keys,
Alternate Key
Compound Key (Easily Handled In Live Forms)
Composite Key (Composite primary keys are
generated when no PK (primary key) is designated in
the database at time of import)
Database Normalization
Database Normalization is the process of removing
Redundant Data from your tables in to improve
storage efficiency, data integrity, and scalability
(function in well manor)
There are three normal forms:
1NF
2NF
3NF.
3NF is widely considered to be sufficient for most
applications.
SQL, PL/SQL, Lecture 1 By Rana Umer
Database Normalization
1st Normal Form
Each field contains the smallest meaningful
value
No Repeating Groups
All the key attributes are define.
All attributes are dependent on Primary Key
Database Normalization
2nd Normal Form
Its should be in 1st Normal Form
It include no partial dependencies on its
Primary Key
Database Normalization
2nd Normalization
Publisher Table
Book Table
Database Normalization
Book Table
Database Normalization
Normalize form
Employee, Department, and Time Card Data
in Three Tables
Table: Employees
Table: Departments
EmpNo
EmpFirstName
EmpLastName
DeptNo
DeptNo DeptName
10
Thomas
Arquette
20
10
Accounting
500
Alan
Cook
50
20
Marketing
700
Ernest
Gold
50
50
Shipping
99
Janice
Smitty
10
Primary Key
TimeCardNo EmpNo
TimeCardDate
106
10
11/02/2002
107
500
11/02/2002
108
700
11/02/2002
115
10
11/09/2002
116
700
11/09/2002
Language
SQL (Structured Query Language) 1970 by IBM
SQL is used to communicate with a database.
It is the standard language for Database Management
Systems.
SQL*Plus is the most basic Oracle Database utility,
with a basic command-line interface, commonly
used by users, administrators, and programmers.
PL/SQL (Procedural Language /SQL) is an
extension to SQL, incorporating many if the design
features of programming languages.
SQL, PL/SQL, Lecture 1 By Rana Umer
Database Administrator
A Database Administrator (DBA) is a person
responsible for the
Installation
Configuration
Upgrade
Administration
Monitoring
Maintenance of Databases in an organization.
Database Administrator
A Data Administrator (DA) is a person responsible for
the