logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is the difference between primary key & unique index ?


  • Correct Answer
  • Primary key : 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 


  • Technology problems


    Search Results


    • 1. Why is free space left in KSDS Dataset?
    • Discuss
    • 2. What is the need to code COMMITS in batch programs?
    • Discuss
    • 3. How can record locking be achieved in those DB2 versions which do not support it?
    • Discuss
    • 4. What does it mean if the null indicator has -1, 0, -2?
    • Discuss
    • 5. What is the difference between Cursor Stability and Repeatable Read isolation levels?
    • Discuss
    • 6. What do you accomplish by GROUP BY ... HAVING clause?
    • Discuss
    • 7. What is the self-referencing constraint?
    • Discuss
    • 8. File contains 5 records say D,E,F,C,A-I want to copy D and A records only by using file-aid?
    • Discuss
    • 9. My SQL statement SELECT AVG(SALARY) FROM EMP yields inaccurate results. Why?
    • Discuss
    • 10. What is a DB2 plan?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment