DB2 interview questions – page 4

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

Advertisement
  1. Commenly facing errors?

  2. What is the difference between static and dynamic sql?

  3. When will you chose to run RUNSTATS?

  4. What is UNION,UNION ALL?

  5. When would you prefer to use VARCHAR?

  6. How do you simulate the EXPLAIN of an embedded SQL statement in SPUFI/QMF? Give an example with a host variable in WHERE clause.)

  7. When do you use subroutines?

  8. How to retrieve n-th row ie n-th record of any table irrespective of the columns and the values present in the table without using ROWID(As it is not supported in DB@)

  9. What are simple, segmented and partitioned table spaces ?

  10. What is normalization and what are the five normal forms?

  11. What will happened ,if the subprogram is called second time?

  12. How do you retrieve the data from a nullable column? ?

  13. Advertisement
  14. Is BETWEEN inclusive of the range values specified? ?

  15. What are some characteristics of columns that benefit from indexes?

  16. What is the index ,types of index ?

  17. Under what circumstances will DB2 allow an SQL statement to update more than one primary key value at a time?

  18. Give the COBOL definition of a VARCHAR field.

  19. What is maximum number of one storage group?

  20. What is meant by index cardinality?

  21. What is ALTER ?

  22. Is DECLARE CURSOR executable?

  23. What is index cardinality?

  24. After bind i how can we run a cobol-db2 program?

  25. What happens when you say OPEN CURSOR?

  26. Advertisement
  27. What are the 4 environments which can access DB2 ?

  28. How would you print the output of an SQL statement from SPUFI? ?

  29. How do you retrieve the first 5 characters of FIRSTNAME column of EMP table?

  30. What is the use of VALUE function?

  31. What is the difference between CS and RR isolation levels?

  32. Give name some fields from SQLCA.

Advertisement