DB2 interview questions – page 5

233 questions. Tap “Show answer” to check yourself.

Advertisement
  1. My SQL statement SELECT AVG(SALARY) FROM EMP yields inaccurate results. Why?

  2. What is dynamic SQL?

  3. When you will use cursor with hold option?

  4. Are views updateable ?

  5. What are the three lock types?

  6. Why SELECT * is not preferred in embedded SQL programs?

  7. What is a DBRM, PLAN ?

  8. What is stored in tables under creator SYSIBM?

  9. Can you have more than one cursor open at any one time in a program ? ?

  10. What is a cursor? why should it be used?

  11. What is isolation level?

  12. What are the advantages of using a PACKAGE?

  13. Advertisement
  14. What is the difference between primary key & unique index ?

  15. There are two programs say A&B,A is only cobol program,B iscobol-db2 program, how to compile both programs?

  16. What are the isolation levels possible ?

  17. What do you accomplish by GROUP BY ... HAVING clause? ?

  18. Is it mandatory to use DCLGEN? If not, why would you use it at all?

  19. Can I use LOCK TABLE on a view?

  20. Is DECLARE TABLE in DCLGEN necessary? Why it used?

  21. Can anyone tell me when do we need a COLLECTION? I know the concept of PLAN and PACKAGE, but unable to understand about COLLECTION.

  22. Where would you specify the DECLARE CURSOR statement? ?

  23. What does the sqlcode of -818 pertain to?

  24. What is diff b/w check pending and copy pending?

  25. What is the cascade rule and how does it relate to deletions made with a subselect. The cascade rule will not allow deletions based on a subselect that references the same table from which the deletions are being made.

  26. Advertisement
  27. How do you find the maximum value in a column?

  28. What is an inner join, and an outer join ?

  29. How to Repair the table?

  30. What is a clustered index?

  31. How will the program knows which key has been pressed?

  32. What is the FREE command?

Advertisement