- World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.

Get it now !!
Send your Resume to 6000 Companies
DB2 Interview Questions & Answers - Learning Mode

DB2 Interview Questions & Answers - Learning Mode

DB2 is a family of relational database management system (RDBMS) products from IBM that serve a number of different operating system platforms. According to IBM, DB2 leads in terms of database market share and performance. DB2 is short for Database 2.

Try DB2 Interview Questions & Answers - Exam Mode

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Next

Sort By : Latest First | Oldest First | By Rating

DB2 Interview Questions & Answers - Learning Mode
Try DB2 Interview Questions & Answers - Exam Mode
Question: What is DCLGEN ?

Answer: DeCLarations GENerator: used to create the host language copy books for the table definitions. Also creates the DECLARE table. Source:
Question: How to see the status of the table?

Answer: Use DB2I command. Option 7.

Question: How would you find out the total number of rows in a table? ?

Answer: Use SELECT COUNT(*) ... Source:
Question: 47) EXPLAIN has output with MATCHCOLS = 0. What does it mean? ?

Answer: a nonmatching index scan if ACCESSTYPE = I. Source:
Question: 91) What is the difference between primary key & unique index ?

Answer: Primary : a relational database constraint. Primary key consists of one or more columns that uniquely identify a row in the table. For a normalized relation, there is one designated primary key.

Unique index: a physical object that stores only unique values. There can be one or more unique indexes on a table. Source:
Question: What is a collection?

Answer: a user defined name that is the anchor for packages. It has not physical existence. Main usage is to group packages.
In SPUFI suppose you want to select max. of 1000 rows , but the select returns only 200 rows. Source:
Question: What is RUNSTATS?

Answer: A DB2 utility used to collect statistics about the data values in tables which can be used by the optimizer to decide the access path. It also collects statistics used for space management. These statistics are stored in DB2 catalog tables. Source:
Question: If the base table underlying a view is restructured, eg. attributes are added, does the application code accessing the view need to be redone?

Answer: 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 Source:
Question: What is the picture clause of the null indicator variable? ?

Answer: S9(4) COMP. Source:
Question: 21) Why SELECT * is not preferred in embedded SQL programs?

Answer: For three reasons:

If the table structure is changed ( a field is added ), the program will have to be modified

Program might retrieve the columns which it might not use, leading on I/O over head.

The chance of an index only scan is lost.

What are correlated subqueries? -

A subquery in which the inner ( nested ) query refers back to the table in the outer query. Correlated subqueries must be evaluated for each qualified row of the outer query that is referred t Source:
Question: What is the diff bet plan,package,dbrm?

Answer: Plan is generated when you compile the DB2-SQL program.

This plan is stored in the DBRM and binded to database as packages. (stored in syscat.syspackages - pkgname)
Question: What is severity one error in production support?

Answer: The Severity error in production support means the Job abended and sucessor jobs are holding the because of this job.(This is related to batch not for onlines)
Question: 15) What is 'LIKE' used for in WHERE clause? What are the wildcard characters? ?

Answer: LIKE is used for partial string matches. ?%? ( for a string of any character ) and ?_? (for any single character ) are the two wild card characters. Source:
Question: Is it mandatory to use DCLGEN? If not, why would you use it at all?

Answer: It is not mandatory to use DCLGEN.
Using DCLGEN, helps detect wrongly spelt column names etc. during the pre-compile stage itself ( because of the DECLARE TABLE ). DCLGEN being a tool, would generate accurate host variable definitions for the table reducing chances of error. Source:
Question: How many clustering indexes can be defined for a table?

Answer: Only one. Source:
Question: When do you use the IMAGECOPY?

Answer: To take routine backup of tables
After a LOAD with LOG NO
After REORG with LOG NO Source:
Question: 80) What is RUNSTATS? ?

Answer: A DB2 utility used to collect statistics about the data values in tables which can be used by the optimizer to decide the access path. It also collects statistics used for space management. These statistics are stored in DB2 catalog tables. Source:
Question: 50) What are the isolation levels possible ? ?

Answer: CS: Cursor Stability

RR: Repeatable Read Source:
Question: 53) When do you specify the isolation level? How?

Answer: During the BIND process. ISOLATION ( CS/RR )...

I use CS and update a page. Will the lock be released after I am done with that page?

No. Source:
Question: How do I see the table definitions (columns, data types of columns, constraints or default values set etc) of a table in QMF? I tried 'DESCRIBE TABLE' but didn't work (not able to execute in QMF). I can see the DCLGEN but looking for a way to see the actual table definition.


TBNAME=table-name AND

TBCREATOR=' creator-name';


to see column names, types and lengths


TBNAME=table-name AND

TBCREATOR=' creator-name';


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Next

India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.029297 Seconds