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 are the database links ?

2 Answers  


How to restrict the duplicate records in table valuesets

2 Answers   IBM,


how do we code triggers , store procedure , Performance tuning and indexing in a Java Project? Pls kindly get me the perfect answer with the code for each....thank you in advance............pls any body kindly help me soon as possible....

0 Answers  


Please explain me all types of Data models. Also give me the details if each model can have other name.for example:schematic data model is also known as conceptual data model and entity relation data model.

0 Answers  


How would you configure your networking files to connect to a database by the name of DSS which resides in domain icallinc.com?

0 Answers  


Can we use oracle pl/sql block in core java? if so how? pls get back to me .....

0 Answers   TCS,


how to unbreak sequence numbers during intereptions

1 Answers   Ion Exchange,


What are the uses of Database Trigger ?

0 Answers  


What is a partition in oracle?

0 Answers  


Without giving condition how to retrieve the unmatched records from table.

1 Answers   TCS,


If server is in US and client is in india there is timezone is diffrence, How can we display date in indian time when data is displayed from US server timezone?

1 Answers  


What privilege is needed for a user to create tables in oracle?

0 Answers  


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