What are the benefits of using the db2 database?
Answer / Barkha Rai
"1. Scalability": DB2 can handle large amounts of data and high volumes of transactions. "2. Performance": It offers efficient query processing and indexing. "3. Reliability": DB2 provides robust error handling, recovery, and security features. "4. Compatibility": It supports a wide range of programming languages and platforms.
| Is This Answer Correct ? | 0 Yes | 0 No |
can any one give the list of some important sql abend codes which r frequently asked in interviews?
One program calling 5 subprograms, its a cobol db2 program, after precompilation how many plans and packages will created?
How to know the primary key of a table without defining the primary key in the table?
What is a buffer pool?
What is declare cursor?
What is a storage group (stogroup)?
What is the difference between nvl and coalesce?
In cursor program-1 can we create another cursor program-2 inside the cursor program-1.If yes how/no why ?
Where is the access path logic created by the DB2 Optimizer stored?
SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.
Mention the various locks that are available in db2.
How do I connect my db2 database to ibm?