Skip to Main Content
IBM Db2 11.1 Certification Guide
book

IBM Db2 11.1 Certification Guide

by Robert (Kent) Collins, Mohankumar Saraswatipura
June 2018
Intermediate to advanced content levelIntermediate to advanced
478 pages
10h 52m
English
Packt Publishing
Content preview from IBM Db2 11.1 Certification Guide

Answers

Question 1

The correct answer is 4:

  • The CHECK constraint is not support in a column-organized table. However, a NOT ENFORCED CHECK constraint is supported to enable query optimization.
  • A table can have multiple CHECK constraints defined.
  • When there are some rows that do not meet the CHECK constraint, the CHECK constraint will fail with an SQL0544N error.
  • The ALTER TABLE statement can be used to define a CHECK constraint on an existing table. A sample ALTER TABLE statement is shown as follows:
ALTER TABLE demo.employee ADD CONSTRAINT check_salary CHECK (salary >=5000) ADD CONSTRAINT check_job CHECK (JOB in ('Engineer','Sales','Manager'));

Question 2

The correct answer is 2.

Unlike other constraints, information constraints are not ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Red Hat RHCSA 8 Cert Guide: EX200, 2nd Edition

Red Hat RHCSA 8 Cert Guide: EX200, 2nd Edition

Sander van Vugt

Publisher Resources

ISBN: 9781788626910Other