-
How does Db2 use multiple table indexes?
DB2 use the multiple indexes to satisfy multiple predicates in a SELECT statement that are joined by an AND or OR.
-
What is a composite index and how does it differ from a multiple index?
A multiple index is not one index but two indexes for two different columns of a table. A composite index is one index made up of combined values from two columns in a table. If two columns in a table will often be accessed together a composite index will be efficient.
-
What is the self-referencing constraint?
A31. The self-referencing constraint limits in a single table the changes to a primary key that the related foreign key defines. The foreign key in a self referencing table must specify the DELETE CASCADE rule.
-
If the base table underlying a view is restructured, eg. attributes are added, does the application code accessing the view need to be redone?
No. The table and its view are created anew, but the programs accessing the view do not need to be changed if the view and attributes accessed remain the same.
-
What is a synonym? How is it used?
A synonym is used to reference a table or view by another name. The other name can then be written in the application code pointing to test tables in the development stage and to production entities when the code is migrated. The synonym is linked to the AUTHID that created it.
-
What is normalization and what are the five normal forms?
Normalization is a design procedure for representing data in tabular format. The five normal forms are progressive rules to represent the data with minimal redundancy.
-
What are foreign keys?
These are attributes of one table that have matching values in a primary key in another table, allowing for relationships between tables.
-
-
Usually, which is more important for DB2 system performance - CPU processing or I/O access?
I/O operations are usually most critical for DB2 performance (or any other database for that matter).
-
Is there any advantage to denormalizing DB2 tables?
Denormalizing DB2 tables reduces the need for processing intensive relational joins and reduces the number of foreign keys.
-
What is lock contention?
To maintain the integrity of DB2 objects the DBD permits access to only on object at a time. Lock contention happens if several objects are required by contending application processes simultaneously.
-
-
-
-
-
-
-
-
-
DB2 Interview Questions
Ans