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 find full database size

1 Answers   BirlaSoft, Consultancy,


How do I use unicode codesets with the weblogic jdriver for oracle driver?

0 Answers  


Display those managers salary greater than the average salary of his employees?(Based on oracle standard Emp table)

6 Answers  


What is set operator oracle?

0 Answers  


What is Data Block ?

2 Answers  






How many memory layers are in the shared pool?

1 Answers  


Explain a private synonyms?

0 Answers  


What is ceil and floor in oracle?

0 Answers  


how to get the second max val for every group in a table

6 Answers   Verizon,


How do we display rows from the table without duplicates?

0 Answers  


What is the purpose of init.ora. ? how many init.ora exist in oracle installation? suppose there are 3 database on one oracle server, how many init.ora do I have? what are various database objects? how will you identify memmory related performace issue in oralce? any idea about basic architure difference of oracle and db2? comment on which is better , with reasons? what is a fuction based index? is it recommended to use the same. ? what is global temporay table? what is teh signification of the parameter session_cached_cursor ?

1 Answers   HDFC,


What are the uses of a database trigger?

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)