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 is oracle in java?

0 Answers  


What is the purpose of save points in oracle database?

0 Answers  


What are virtual columns?

2 Answers   TCS,


What is materialized view in Oracle?

0 Answers   MCN Solutions,


Explain integrity constraint?

0 Answers  






What is tns service name?

0 Answers  


What are the different types of record groups in oracle? Explain each of them

0 Answers  


How to define a cusotmer as a supplier in ORACLE R12

0 Answers   Intelligroup,


What is meant by recursive hints ?

1 Answers  


how to select alphabets in a one column , for this the table name is PA_TASKS and column name is TASK_NUMBER, In TASK_NUMBER the data like this 1.1.3NN,1.1.4NN,1.5.1NN,1.3.2NE,1.5NN,1NN,1.2NE,1CE , For this i need to disply output as only NN,but not other alphabets, if NN is thre means i should display , otherwise leave that blank or empty Its some urgent requirement ,thanks in advance

2 Answers  


How to list all user accounts in oracle?

0 Answers  


Is primary key indexed by default 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)