what is primary key and foreign key when and where have to use

Answers were Sorted based on User's Feedback



what is primary key and foreign key when and where have to use..

Answer / prashant

primary key has a unique & it is only one in a
databasewhile fkey is not unique. it is based on primary key

Is This Answer Correct ?    2 Yes 0 No

what is primary key and foreign key when and where have to use..

Answer / ramprasad.s

HI

Primary key = (Not Null + Unique).

Foreign key = (For Referential table access).


Bye
sun_ramprasad@yahoo.com

Is This Answer Correct ?    2 Yes 1 No

what is primary key and foreign key when and where have to use..

Answer / chandrika

primary key has unique value, it dostnt contain null values
and duplicate values.


foregin key is primary key of another table

Is This Answer Correct ?    2 Yes 2 No

what is primary key and foreign key when and where have to use..

Answer / raveendran

Primary key is unique across entire table.In primary key
not null constraint is activated.Only one primary key in
one table.

foreign key points to primary key of another table

Is This Answer Correct ?    0 Yes 0 No

what is primary key and foreign key when and where have to use..

Answer / csprusty

To establish a relationship between 2 tables.
pk=(unique+not null)
fk=unique

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Oracle General Interview Questions

What are the advantages of oracle?

0 Answers  


how the Oracle Prepares the Execution Plan and how it chooses the Optimal one?

0 Answers   Oracle,


How to assign a table row to a record variable?

0 Answers  


List the parts of a database trigger.

0 Answers  


which institute and which faculty is providing best training for oracle sql, plsql in hyderabad

4 Answers  






Which Database is the best for the Security issue ? 1. DB2 2.SQL Server 3.MySQL 4.ORACLE

1 Answers  


15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.

0 Answers   Wipro,


How to invoke the data pump export utility?

0 Answers  


Explain implicit cursor.

0 Answers  


Can you use a commit statement within a database trigger?

4 Answers  


How to generate query output in html format?

0 Answers  


How to retrieve values from data fields in record variables?

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)