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...


Difference between primary key and unique key ?

Answers were Sorted based on User's Feedback



Difference between primary key and unique key ?..

Answer / dj

Primary key creates Clustered Index.
Unique key creates non-clustered Index

Is This Answer Correct ?    24 Yes 4 No

Difference between primary key and unique key ?..

Answer / sreesakthi

primary key will not allow null values whereas unique key
will allow null values.we have only one primary key per
table,but we can have more than one unique key per table

Is This Answer Correct ?    25 Yes 8 No

Difference between primary key and unique key ?..

Answer / pralhad

Each table having only one PRIMARY KEY.And my contain many
UNIQUE KEYS.
PRIMARY KEY is identity of each row. UNIQUE KEY also
identity of each row.
BOTH keys will not contain repeated value.
BUT UNIQUE KEY will contain NULL value but PRIMAY key will
not contain NULL value.

Is This Answer Correct ?    63 Yes 47 No

Difference between primary key and unique key ?..

Answer / satendra dixit

Primary Key
1. Not Null
2. One primary key can be defined at on table

Unique Key
1. May be Null
2. one or more then 1, can be implemented

Is This Answer Correct ?    22 Yes 11 No

Difference between primary key and unique key ?..

Answer / saurabh

the no of primary key in a table is one but the no of
unique is more then one

Is This Answer Correct ?    25 Yes 15 No

Difference between primary key and unique key ?..

Answer / mohan singh

Primary key contain non repetitive value and not null
value,and primary key is created on clustered index.In the
table their should be one primary key column.


Unique key contain non repetitive value but can contain
only one null value in the column.And unique key is created
on non clustered index.

Is This Answer Correct ?    13 Yes 3 No

Difference between primary key and unique key ?..

Answer / pankaj kumar tiwari

primary key create index it means its value inserted in
sequence but in unique, we insert data in any order

Is This Answer Correct ?    15 Yes 6 No

Difference between primary key and unique key ?..

Answer / niraj pratap singh

primary key has no null values whereas unique accepts null
values and in a table only one primary key is declared
whereas unique key is multiple in a table.

Is This Answer Correct ?    10 Yes 2 No

Difference between primary key and unique key ?..

Answer / rinu

1)unique key can be null but primariy key cant be null.
2)primariy key can be refrenced to other table as FK.
3)we can have multiple unique key in a table but PK is one
and only one.
4)PK in itself is unique key.
5)a table can have more then one unique key column but a
table can have only one primary key column.
6)primary key creates clustered index but unique key
creates non clustered index.

Is This Answer Correct ?    12 Yes 7 No

Difference between primary key and unique key ?..

Answer / ela tiku

1. Primary key does not allow Nill value whereas Unique key
allows Null values.

2. There can more than one Unique key for a table however
there is only one primary key for ant tanle.

2. Whenever a primary key is assigned by default a
Clustered Index is created whereas When a Unique key is
created a Non Index clustered index is created...

Is This Answer Correct ?    8 Yes 5 No

Post New Answer

More Oracle General Interview Questions

What is program global area (pga) in oracle?

0 Answers  


Explain the use of Merge statement in oracle 11g

0 Answers   Infosys,


how to get required data from oracle source is like this ram_05_seetha lax_05_viswa bamr05frummy run_01_away sw_sas_trim i want my target data like ram_05_seetha lax_05_viswa to get data using %_05_% but it will give ram_05_seetha lax_05_viswa bamr05frummy how can i get my target data?

1 Answers   Infosys,


What happens to the indexes if a table is recovered?

0 Answers  


What is the difference between SQL, DDL, and DML?

7 Answers   BeBo Technologies, Wipro,


What is a cluster Key ?

2 Answers  


What is PL/SQL ?

3 Answers  


How to start a new transaction in oracle?

0 Answers  


Whatz the main diff between Subquery and a Join

14 Answers   Oracle, Zeta Interactive,


Differnce between view and index

3 Answers  


what is the syntax of UPDATE command?

8 Answers  


what is query and types of query

6 Answers   Reliance,


Categories
  • Oracle General Interview Questions Oracle General (1809)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)