DB2 interview questions – page 2

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

Advertisement
  1. How do you retrieve the first 5 characters of FIRSTNAME column of DB2 table EMP ?

  2. Can the OCCURS clause be at the 01 level?

  3. What is the COBOL picture clause for a DB2 column defined as DECIMAL(11,2)?

  4. EXPLAIN has output with MATCHCOLS = 0. What does it mean? ?

  5. Will precompile of an DB2-COBOL program bomb, if DB2 is down?

  6. How do you do the EXPLAIN of a dynamic SQL statement?

  7. What are the various locking levels available?

  8. What is sqlcode -922 ?

  9. What is the self-referencing constraint?

  10. How many clustering indexes are pasing for a table?

  11. What is a LIKE table and how is it created?

  12. Lot of updates have been done on a table due to which indexes have gone haywire. What do you do?

  13. Advertisement
  14. When is the access path determined for dynamic SQL?

  15. I have 1000 records in vsam,I want to read records 500 to 900

  16. Suppose there is cobol-db2 program.I made changes only in the cobol program.Is there need recomile the DBRM again?why?

  17. Where do you specify them ?

  18. What is an alias and how does it differ from a synonym?

  19. What are delete-connected tables?

  20. What is the indexset and sequence set in vsam ksds?

  21. What is the physical storage length of each of the following DB2 data types:DATE, TIME, TIMESTAMP?

  22. How do you concatenate the FIRSTNAME and LASTNAME from EMP table to give a complete name?

  23. What is a DB2 plan?

  24. What do the initials DDL and DML stand for and what is their meaning?

  25. What is the significance of the CURSOR WITH HOLD clause in a cursor declaration?

  26. Advertisement
  27. How do you leave the cursor open after issuing a COMMIT? ( for DB2 2.3 or above only )

  28. How to see the status of the table?

  29. What is a collection?

  30. Can you display the index?

  31. File contains 5 records say D,E,F,C,A-I want to copy D and A records only by using file-aid?

  32. How is a typical DB2 batch pgm executed ?

Advertisement