-
Group By
Can you select any column in a Group by query even if that column is not groupable?e.g. Select Dept, Empno, Ave(salary) From T1 Group by DeptCan we select empno in the above query?
-
Referential Integrity
Which one of the following does not help to maintain referential integrity?a. Unique constraintsb. Primary keysc. Cascading actions d. Foreign keys
-
-
Attributes to Read & Write DB2 file
What are the attributes that needs to be defined in order to read & write DB2 file in Cobol program?
-
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.
-
Bind process
What happens during pre-compilation and finally bind process?
-
What techniques are used to retrieve data from more than one table in a single SQL statement?
Joins, unions and nested selects are used to retrieve data.
-
-
Locked Space
What is meant by locked space? Describe locking concepts?
-
A table called EMPLOYEE has the following columns: name, department, and phone_number. Which can limit read access to the phone_number column?
A table called EMPLOYEE has the following columns: name, department, and phone_number. Which of the following can limit read access to the phone_number column? A. Using a view to access the table B. Using a referential constraint on the table C. Revoking access from the phone_number column D. Defining a table check constraint on the table
-
What is cursor stability?
Cursor stability means that DB2 takes a lock on the page the cursor is accessing and releases the lock when the cursor moves to another page.
-
DB2 WITH HOLD option
What does WITH HOLD option do ?forces cursor to close after commitb.Keeps cursor open after commitc.Does not allow cursor to close till all rows are fetchedd.Locks the cursore.None of the aboveKeeps cursor open after commit
-
-
Explain an outer join?
An outer join includes rows from tables when there are no matching values in the tables.
-
-
What is tablespace?
Tables are stored in tablespaces (hence the name)! There are three types of tablespaces: simple, segmented and partitioned.
-
What is the difference between IN subselects and EXISTS subselect?
If there is an index on the attributes tested an IN is more efficient since DB2 uses the index for the IN. (IN for index is the mnemonic).
-
-
DB2 Large Objects (LOB) Columns
In DB2, Large Objects (LOB) Columns are used to store large objects (Documents, pictures, voice, and mixed media) in database. Which of the following clauses can't be used on LOB columns?a) GROUP BYb) HAVINGc) ORDER BYd) NONE OF THE ABOVE
-
What is a DB2 plan?
An application plan or package is generated by the bind to define an access path.
DB2 Interview Questions
Ans