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

What is catalog in Oracle?

0 Answers   MCN Solutions,


How do I uninstall oracle client from windows?

0 Answers  


1. How actually index will work ? 2. Why do people prefer mostly bitmap index and btree index in datawarehouse ? 3. If I use the column in aggrigate functions like max,min,count and avg and if I have a index created on that column, will it increases the performance ?

1 Answers   IBM,


In what script is snap$ created? In what script is the scott/tiger schema created?

0 Answers  


what is the syntax of ALTER command?

8 Answers  






What privilege is needed for a user to query tables in another schema?

0 Answers  


Hi Guys,I have completed my B.com Commerc in the year 2005 and MBA finance in 2008(Correspondance).And I have 3+yrs exp in Accounting and Finance feild.I have worked for TCS for 1.8yrs as Project manage office as a enduser in oracle ERP module.Currently working as Project Adminstartor for CSC.I have joined in Oracle financial classes and I am through with that subject.So my concern is After learning oracle, am in dilemma that will i be eligible to get job in oracle or not?Please advice or Give me suggestions.To kick start my career as fresher in Oracle

0 Answers  


how to get the no employee in each department including the dept which has 0 employee

5 Answers  


Why is oracle so popular?

0 Answers  


Oracle

0 Answers   ABC, Genpact, HUI, Oracle,


Why cursor variables are easier to use than cursors?

0 Answers  


What is ADDM Advisor in Oracle?

0 Answers   MCN Solutions,


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)