Book Image

IBM Db2 11.1 Certification Guide

By : Robert (Kent) Collins, Mohankumar Saraswatipura
Book Image

IBM Db2 11.1 Certification Guide

By: Robert (Kent) Collins, Mohankumar Saraswatipura

Overview of this book

IBM Db2 is a relational database management system (RDBMS) that helps you store, analyze, and retrieve data efficiently. This comprehensive book is designed to help you master all aspects of IBM Db2 database administration and prepare you to take and pass IBM's Certification Exams C2090-600. Building on years of extensive experience, the authors take you through all areas covered by the test. The book delves deep into each certification topic: Db2 server management, physical design, business rules implementation, activity monitoring, utilities, high availability, and security. IBM Db2 11.1 Certification Guide provides you with more than 150 practice questions and answers, simulating real certification examination questions. Each chapter includes an extensive set of practice questions along with carefully explained answers. This book will not just prepare you for the C2090-600 exam but also help you troubleshoot day-to-day database administration challenges.
Table of Contents (10 chapters)

Creating and using triggers

A trigger is a database object that can perform a set of actions in response to events such as an INSERT, UPDATE, or DELETE operation on a specified table or view. You can use triggers, along with referential constraints and CHECK constraints, to enforce data integrity rules.

Five major components are associated with any trigger:

  • The subject on which the trigger is defined–tables or views
  • The event which initiates the trigger–an INSERT, UPDATE, or DELETE operation
  • The activation time of the trigger–a BEFORE or AFTER the event
  • The granularity which specifies whether the trigger's actions are performed once for the statement or once for each of the affected rows–a FOR EACH STATEMENT or FOR EACH ROW action
  • The action, which the trigger performs–one or more of the following elements:
    1. CALL statement
    2. DECLARE and/or...