Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between Primary key and
unique index?

Answers were Sorted based on User's Feedback



What is the difference between Primary key and unique index?..

Answer / rams

Primary Key is Unique and Not Null. Unique index can be defined on Primary Key or any other Unique column in the table. Unique index can have a Null Value unlike Primary Key.

Is This Answer Correct ?    3 Yes 0 No

What is the difference between Primary key and unique index?..

Answer / guest1

Using the Primary Key you can establish referential
integrity. Unix index will be created upon the Primary Key
column, and the data will be seperately placed in the Index
space. If you have not created Unix Index, while accessing
the table it leads to SQLCODE = -540

Is This Answer Correct ?    1 Yes 0 No

What is the difference between Primary key and unique index?..

Answer / raghunathan

We can have only one Primary Key for a table(including multiple column) but can have any number of unique indexes in a table( limited to number of columns in that table)

Is This Answer Correct ?    1 Yes 0 No

What is the difference between Primary key and unique index?..

Answer / guest

The primary key is used to establish referential integrity
relationship with another table and a Unique index is used
to to enforce uniqueness.

Is This Answer Correct ?    2 Yes 2 No

What is the difference between Primary key and unique index?..

Answer / sunny kalra

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.

Is This Answer Correct ?    0 Yes 0 No

What is the difference between Primary key and unique index?..

Answer / ankit

IN PRIMARY KEY WE DO NOT ATTACH UNIQUE INDEX BUT IN UNIQUE
INDEX WE CAN ATTACH PRIMARY KEY

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More DB2 Interview Questions

What is the cascade rule and how does it relate to deletions made with a subselect?

1 Answers  


What is meant by dclgen?

0 Answers  


i have cobol+ db2 program but it contains n number of subprograms for this how many dbrm members i need to mention in bind process

2 Answers  


what is a collection?

2 Answers  


I have two tables A and B. Both tables are connected with SSN number as foreign key. I want to retrieve a column data from B table. How will you write a query?

3 Answers   CTS,


How can you do the explain of a dynamic sql statement?

0 Answers  


when does the SQL statement gets executed when you use cursor in the application programming ?

3 Answers   IBM,


What is the purpose of the DSNC transaction ?

1 Answers  


How will fetch last 5 rows from table in db2

6 Answers  


What is scrollable cursor in db2?

0 Answers  


Suppose there are many duplicate records in a Db2 table. What is the query to retrive only duplicate records?

4 Answers  


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

1 Answers  


Categories