Download presentation
Presentation is loading. Please wait.
1
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
2
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
3
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
4
Procedural Extensions and Stored Procedures
SQL provides a module language Permits definition of procedures in SQL, with if-then-else statements, for and while loops, etc. Stored Procedures Can store procedures in the database then execute them using the call statement permit external applications to operate on the database without knowing about internal details
5
Functions and Procedures
SQL:1999 supports functions and procedures Functions/procedures can be written in SQL itself, or in an external programming language. Functions are particularly useful with specialized data types such as images and geometric objects. Example: functions to check if polygons overlap, or to compare images for similarity. Some database systems support table-valued functions, which can return a relation as a result. SQL:1999 also supports a rich set of imperative constructs, including Loops, if-then-else, assignment Many databases have proprietary procedural extensions to SQL that differ from SQL:1999.
6
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
7
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
8
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
9
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
10
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
11
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
12
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
13
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
14
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
15
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
16
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
17
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
18
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
19
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
20
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
21
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
22
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
23
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
24
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
25
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
26
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
27
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
28
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
29
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
30
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
31
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
32
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
33
© 2014, Mike Murach & Associates, Inc.
Murach’s Oracle SQL and PL/SQL, C15 © 2014, Mike Murach & Associates, Inc.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.