emp numb is unique because that is primary key,,but what is foreign key .. explain very clear with example



emp numb is unique because that is primary key,,but what is foreign key .. explain very clear with e..

Answer / vilas

Foregin key: It is the relation between two tables.it can be
used to create the relation between two tables,when two
tables have the unique rows (means emp_numb)then we can
used to foreign key.
eg:
create table student
{ name varchar(10),
rollno int(10));
.......this is student table........
create table student_Details
{ name varchar(10),
rollno int(10)refercence
);
.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Oracle General Interview Questions

Find all employees in Dept “Marketing”.

2 Answers  


Explain the importance of .pll extension in oracle?

0 Answers  


What are the uses of linked server and explain it in detail?

0 Answers  


How many objectname will be created for a single table drop function? Why 'flashback' query giving error "ORA-38312: original name is used by an existing object" while getting the table?

0 Answers  


what are stored procedures?

7 Answers   TCS, Wells Fargo,






which sql command we can use to get a print out from oracle?

2 Answers   iFlex, INDUS,


What is the data pump export utility?

0 Answers  


Can we store images in oracle database?

0 Answers  


What are advantages of dateset in datastage?

0 Answers   iGate,


What is the disadvantage of User defind function?

0 Answers   CybAge,


what is the difference between restoring and recovering?

0 Answers   MCN Solutions,


What is the Difference between 1) ER MODEL and Relational Model 2) Dense Index and Sparse Index

1 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)