Define the terms primary key foreign key and also the
difference between primary and the unique key

Answers were Sorted based on User's Feedback



Define the terms primary key foreign key and also the difference between primary and the unique ke..

Answer / pugal

Primary Key : The primary key of a relational table
uniquely identifies each record in the table

Foreign Key : These keys are used to create relationships
between tables.

Unique Key : In relational database design, a unique key is
a candidate key to uniquely identify each row in a table. A
unique key comprises a single column or set of columns

Difference between primary and unique key :

primary key not allows null values
unique key allows null values

Is This Answer Correct ?    33 Yes 12 No

Define the terms primary key foreign key and also the difference between primary and the unique ke..

Answer / nithya

one more difference is:

a table can have only one primary key but many unique keys.

Is This Answer Correct ?    22 Yes 3 No

Post New Answer

More Oracle General Interview Questions

how to insert the image in table

2 Answers  


What is rowid and rownum in oracle?

0 Answers  


what is integrity constrains?

3 Answers  


What should be the return type for a cursor variable.Can we use a scalar data type as return type?

1 Answers  


What is Database Link ?

2 Answers  






what is meant by magic query

0 Answers  


What is a initialization parameter file in oracle?

0 Answers  


What are the components of logical database structure in oracle database?

0 Answers  


hi friends, I have a table A col as status|NUM and value as open |1 open |2 close |3 close |3 the O/P should be open|close 1 |3 2 |4

1 Answers   CTS,


Why cursor variables are easier to use than cursors?

0 Answers  


What is the difference between formal parameters and actual parameters?

0 Answers  


What is the best way to do multi-row insert in oracle?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • 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)