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 are the advantages of primary key over unique+notnull

Answers were Sorted based on User's Feedback



what are the advantages of primary key over unique+notnull..

Answer / tulsi

Primary key will avoid duplicate and null values in a table
which the combination of unique+not null will do.But the
advantage is,if a table has primary key we can create
relation to child tables.

Is This Answer Correct ?    28 Yes 13 No

what are the advantages of primary key over unique+notnull..

Answer / shilpa.oracle

Primary key accepts only unique values and does not allow
null values.

Unique key accepts unique values and allows null values.

not null constraint allows duplicate values and doesnt allow
null values.

When a primary key constraint or unique key constraint is
created by default index is created on the columns with
these constraints.

Is This Answer Correct ?    16 Yes 4 No

what are the advantages of primary key over unique+notnull..

Answer / smita

A Foriegn key can refer to the primary key.
A Foriegn key can refer to the unique key also .

Is This Answer Correct ?    14 Yes 6 No

what are the advantages of primary key over unique+notnull..

Answer / soubhagya

When we create a primary key automatically a cluster index
is created on those columns involved in primary key.But
this index not created in unique+not null key, it only
restrict the duplicate values.

Is This Answer Correct ?    4 Yes 3 No

what are the advantages of primary key over unique+notnull..

Answer / kamal

we are able to create a primary key for combination of more
than 1 column. which is not possible in Unique,we should
create unique key for each and every column in the table
individually.

ex . we can create a primary key for (Name,DOB,address)- ie
combination of these three columns be unique.

Is This Answer Correct ?    3 Yes 5 No

what are the advantages of primary key over unique+notnull..

Answer / charumathi

Unique-Duplicates not allowed
Nulls allowed
Not null-NUlls not allowed
Primary key-No Duplicates
No Nulls
A Foriegn key can refer to the primary key.

Is This Answer Correct ?    4 Yes 7 No

what are the advantages of primary key over unique+notnull..

Answer / nitesh

PRIMARY KEY CREATED WITH INDEXES WHICH IS NOT HAPPEN WITH
UNIQUE AND NOT NULL

Is This Answer Correct ?    8 Yes 21 No

Post New Answer

More SQL PLSQL Interview Questions

how many sql ddl commands are supported by 'mysql'? : Sql dba

0 Answers  


How do you use join?

0 Answers  


what is a table in a database ? : Sql dba

0 Answers  


package specification-3 procedures package body-2 procedures will is execute

2 Answers   PWC,


Is sql a oracle?

0 Answers  


how to select unique records from a table? : Sql dba

0 Answers  


I have following column in the table. col1 1 a b c 2 3 d and I want to display it as num chars 1 a 2 b 3 c 4 d numbers in one column and letters in another column.

1 Answers   IBM, Saama Tech,


how instead of triger is helpful for mutating tables errors handlling ?

2 Answers   Oracle,


What do you mean by dbms? What are its different types?

0 Answers  


What is varray in pl sql?

0 Answers  


how many tables will create when we create table, what are they? : Sql dba

0 Answers  


Is sql free?

0 Answers  


Categories