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


If a table column has is UNIQUE and has NOT NULL, is it
equivalent to a PRIMARY KEY column?

Answers were Sorted based on User's Feedback



If a table column has is UNIQUE and has NOT NULL, is it equivalent to a PRIMARY KEY column?..

Answer / prashant t.

No.
It will same for doesn't allow null and duplicate values.
But, Primary key constrained applied Cluster index on that
column and unique key constraint non clustered index on
that column. that is the major differece still be there.

Is This Answer Correct ?    20 Yes 1 No

If a table column has is UNIQUE and has NOT NULL, is it equivalent to a PRIMARY KEY column?..

Answer / bhakti

yes it is equivalent as primary key is nothing but unique
and not null.

Is This Answer Correct ?    16 Yes 6 No

If a table column has is UNIQUE and has NOT NULL, is it equivalent to a PRIMARY KEY column?..

Answer / bhakti

ya thats true.i.e.,in case of Primary Key we can have
parent to child relationship if that is say foreign key in
another table.In case of unique and not null we cant achive
dis.

But while inserting data into one table both will have no
difference.

Is This Answer Correct ?    7 Yes 4 No

If a table column has is UNIQUE and has NOT NULL, is it equivalent to a PRIMARY KEY column?..

Answer / pkd

yes, unique key is also used for foreign key

Is This Answer Correct ?    1 Yes 0 No

If a table column has is UNIQUE and has NOT NULL, is it equivalent to a PRIMARY KEY column?..

Answer / eshwari

ur question is not clear.

if ur saying that ur giving unique and not null constraints
to the same column then u can make it as primary key.it
internally supports clustered index also.

if ur saying that ur giving unique and not null constraints
to different columns then u cant make them as primary key
individually.
coz primary key means unique + notnull + clustered index

Is This Answer Correct ?    2 Yes 1 No

If a table column has is UNIQUE and has NOT NULL, is it equivalent to a PRIMARY KEY column?..

Answer / dibya tara shakya

It will same but in case of primary key we can create the
master child relationship with other child table as foreign
key but in case of unique and not null we cannot.

another major difference is that Primary key constraint
applied Cluster index on that
column and unique key constraint non clustered index on
that column.

Is This Answer Correct ?    1 Yes 1 No

If a table column has is UNIQUE and has NOT NULL, is it equivalent to a PRIMARY KEY column?..

Answer / sujith

no it is not.......... you may have some other columns which
have not null and unique constraints on it..... the thing is
that you should explicitly choose which one should be
treated as primary key so that clustered index can be put on
it, and non clustered on others where needed.........
foreign key may be used to refer to unique constraint
column, but while dropping you may loose relative unique
constraint also.. where as in case of primary referred by
foreign, will not allow so to happen............

Is This Answer Correct ?    0 Yes 1 No

If a table column has is UNIQUE and has NOT NULL, is it equivalent to a PRIMARY KEY column?..

Answer / amit

if that so then your referential entrigity will be spoil
foreign key will not be recognised means data will not true.

Is This Answer Correct ?    5 Yes 8 No

Post New Answer

More Oracle General Interview Questions

Tab A A B ------ 1 A 2 B 3 C Tab B A B ----- 4 D 5 E 6 F Generate the value into B table from A table. Only table A has the value. Write the SQL query to get B table value.

0 Answers   TCS,


Explain oracle instance.

0 Answers  


Who i will insert 1 lacks record in a Database table

4 Answers   TCS,


How to drop a stored function?

0 Answers  


what is pragma?

2 Answers  


What is using clause and give example?

0 Answers  


How to write a query with an inner join in oracle?

0 Answers  


What is a Synonym ?

3 Answers  


How to use subqueries in the from clause in oracle?

0 Answers  


Is it possible to join two tables, that are in two different users (e.g. SCOTT and HR etc.),but im same database (e.g. ORCL)? If yes, then how it is possible? Explain with step by step procedure.

1 Answers   IBM,


In Oracle 10g, "g" Stands for what?

5 Answers   Mphasis,


Explain oracle left join with an example?

0 Answers  


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)