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

Does rowid change in oracle?

1 Answers  


what is mean by prmary key and foreign key and how can we diffrentiate that? Please answer me. Advance thanks.

9 Answers   BPO, Excel, Wipro,


How to use existing values in update statements using oracle?

0 Answers  


What is the Extension of Oracle Database? As extension of Access Database is .mdb

2 Answers  


Indexes in oracle ?

3 Answers   Keane India Ltd, L&T,






How to initialize variables with default values?

0 Answers  


cursor attributes are %isopen ,%notfound,%found,%rowcount but is any attributes there other than these? please tell me asap ..

2 Answers  


How to view all columns in an existing table?

0 Answers  


How to experiment a data lock in oracle?

0 Answers  


what is reindexing?

0 Answers   Tata Technologies,


what is the syntax of UPDATE command?

8 Answers  


What happens if you lost a data file?

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)