+ All Categories
Home > Documents > Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application...

Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application...

Date post: 28-Dec-2015
Category:
Upload: jesse-shaw
View: 248 times
Download: 1 times
Share this document with a friend
24
Oracle10g Developer: PL/SQL Programming 1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans & MoreMovies Databases SQL SELECT Statement Syntax
Transcript
Page 1: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 1

Objectives

PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans & MoreMovies Databases SQL SELECT Statement Syntax

Page 2: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 2

Procedural Languages

Programming languages allow actions of the end user to be converted to computer instructions

Procedural languages allow the inclusion of logic processes

PL/SQL is a procedural language, SQL is not a procedural language

Page 3: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 3

Application Programming

Example application screen

Page 4: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 4

Brewbean’s Application

Processing needed to support the shopping cart check out button– Verify quantities are > 0– Calculate shipping cost– Calculate taxes– Check/update product inventory– Check shopper profile for credit card information

Page 5: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 5

The PL/SQL Language

Proprietary Oracle language Tightly integrated with SQL Can increase performance by grouping statements

into blocks of code Portable to any Oracle platform Used within many Oracle tools Stored program units can increase security

Page 6: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 6

Application Models

Three main components– User interface or screens– Program logic (brains behind the screens)– Database

Most models are based on a two- or three-tier structure

Page 7: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 7

Two-tier Model

Commonly referred to as client/server Parts of the processing occur both on the user’s

computer and the database server Named or stored program units are blocks of

PL/SQL code saved in the Oracle database to provide server-side processing

Page 8: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 8

Two-tier Diagram

Page 9: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 9

Three-tier Model

Thin client with no code loaded on the user machine (browser access)

Middle tier is the application server – Forms server for Oracle

Last tier is the database server Processing load is on the middle and last tier Maintenance is simplified

Page 10: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 10

Three-tier Diagram

Page 11: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 11

Oracle Documentation

Oracle Technology Network (OTN): otn.oracle.com Doc directory on CDs distributed by Oracle

Page 12: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 12

Software Used

SQL*Plus – Oracle10g Other software introduced in appendices

– Oracle SQL Developer– TOAD

Page 13: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 13

SQL*Plus Client Interface

Page 14: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 14

SQL*Plus Internet Interface

Named iSQL*Plus

Page 15: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 15

Third-party Tools

TOAD Rapid SQL PL/SQL Developer SQL-Programmer PLEdit FROG

Page 16: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 16

The Brewbean’s Company

Retails coffee and brewing equipment via the Internet, phone, and stores

Used in chapter explanations, examples, and exercises

Databases create script provided for each chapter

Page 17: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 17

ERD for Brewbean’s DB

Page 18: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 18

More Movies ERD

Movie rental company used in an ongoing case study

Page 19: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 19

SQL Query Syntax

SELECT <columns>

FROM <tables, views>

WHERE <conditions>

GROUP BY <columns>

HAVING <aggregation conditions>

ORDER BY <columns>;

Page 20: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 20

Traditional Join

Page 21: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 21

ANSI Join

Page 22: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 22

Using Aggregate and WHERE

Page 23: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 23

Creating Tables

Page 24: Oracle10g Developer: PL/SQL Programming1 Objectives PL/SQL And Application Programming Application Models Documentation SQL and PL/SQL tools BrewBeans.

Oracle10g Developer: PL/SQL Programming 24

DML Statements


Recommended