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)

Views with CHECK OPTION

A view is a way of representing data without the need to store and maintain it. A view is not an actual table and requires no storage. It also provides a different way of looking at the data in one or more base tables.

For example, if you want to restrict users from accessing SSN and SALARY information, you can easily do so by creating a view without these columns and limit the user's access to only the view. An example of this is shown as follows:

CREATE TABLE demo.employee ( 
                  empid INTEGER, 
                  name VARCHAR(30), 
                   ssn  VARCHAR(11), 
                  salary INTEGER ); 
 
SELECT * FROM demo.employee; 
 
EMPID       NAME               SSN         SALARY 
----------- ------------------- ---------------- ----------- 
          1 Robert, Colin     999-99-9999       90000 
          2 Milan, Mohan    ...