home 
 
 
 
nlfr
 
Home
About ABIS
Services
Courses
Resources
Contact
MyABIS
C
All CoursesbalkjeGeneral » Introduction to HW & SW » Soft skills » TracksOperating systems » MVS - z/OS » UNIX - Linux - AIX » Mac OS X » iPad and iPhone iOSDatabases and middleware » Relational databases & SQL » DB2 for z/OS » DB2 for LUW » Oracle » SQL Server » MySQL & MariaDB » IMS » CICS » IBM MQ » WebSphere » Big data and analyticsApplication development » Methods and techniques » TOGAF » PRINCE2 » Agile development and Scrum » Programming languages » Internet development » Object Oriented systems » Java » Development tools » SAS » XML » SOA & web servicesSystems management » ITIL » SecuritybalkjePractical informationRegistration 
DB2 SQL PL, triggers, stored procedures & user-defined functions

Objectives

Since quite some time now, the possibility exists to integrate extra functionality in your database by means of stored procedures, triggers and user defined functions. Meanwhile, these features have proven to be indispensable, especially for improving modularity, reusability, and security. Time for you to start using these functional objects!

In this course the advantages and disadvantages of stored procedures, triggers and user defined functions are explained. Participants also learn to apply the right tool.

Participants will also get a technical insight in the set-up and the use of stored procedures, triggers and user-defined functions. Both external stored procedures and stored procedures set-up with SQL PL (the 'SQL procedural language') are discussed. The SQL PL language is treated in sufficient depth such that participants will be able to write even fairly complex procedures. For those who want to go deeper into SQL PL, we refer to the course SQL PL database programming

Main topics

  • SQL PL:
  • The procedural language of DB2: a short introduction
  • How to use variables, create cursors, throw exceptions, verify conditions, ...
  • Triggers:
  • What are triggers?
  • How and when do we use triggers?
  • Writing triggers
  • Examples and exercises
  • Stored procedures:
  • What are stored procedures: advantages and disadvantages?
  • When do we use stored procedures?
  • External stored procedures (written in COBOL, PL/I, C, Java, ...)
  • Stored procedures written in SQL PL
  • Examples and exercises
  • User defined functions:
  • User defined functions: introduction
  • How do we code user defined functions?
  • When and how to use UDFs?
  • Scalar functions and table functions
  • Examples and exercises
 

Intended for

Application developers and technical analysts who have to develop stored procedures, triggers or user defined functions.

DBAs and data base designers who want to know the new possibilities in DB2 and learn how triggers and stored procedures can help implement the logical design, the data integrity, and the access control of a relational database.

Background

Participants should be familiar with SQL (see SQL and relational databases fundamentals) and with DB2 for z/OS (see DB2 for z/OS fundamentals course) or DB2 for Linux, Unix and Windows (see DB2 for LUW fundamentals course). Knowledge of an application programming language (COBOL, PL/I, C, Java, SQL PL, ...) is not required.

Training method

Classroom instruction with examples and exercises.

Course leader

Peter Vanroose.

Duration

1 day.

Schedule

You can enrol by clicking on a date
datedur.lang.  location  price
22 Sep1NWoerden  (NL)500 EUR  (exempt from VAT) 

Global score

   
3.7/5 (based on 52 evaluations)

Reviews

     
Goede cursus, maar te weinig tijd voor oefeningen. Ook zou het handiger zijn om in een andere omgeving dan SPUFI te werken met oefeningen. (Omslachtig en kost teveel onnodige tijd.) Data Studio bijv. (dat wordt bij CZ ook gebruikt.) (, )
     
cursus inhoud goed voor een eerste verkenning met Sp's, triggers en udf. De stof en oefeningen gaan veel verder, maar daar kom je in t algemeen niet aan toe (, )
     
Goed, voor mijn niveau iets te hoog (te weinig sql ervaring) (, )
     
Good course, maybe a bit too much subjects for one day (, )
     
Gaf vrij precies wat ik wilde. Niet te veel tijd aan praktijk besteed. (, )
     
Prima cursus. (, )
     
Voldoende voor mijn behoefte aan kennis (, )
     
Goed. Docent moet op snelheid van praten letten. (, )
     
Helaas problemen met beschikbaarheid van onze db2 Unix/linux omgeving. (, )
     
goed, graag meer oefeningen; iets algemener, minder diepgang (, )