Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How many anonymous blocks can be defined?

1161


What is the purpose of tables, private synonyms and public synonyms in Oracle?

1026


how to join query for one source type is oracle another source type is sql server ?

2406


How to run create database statement?

1008


How to speed up webrick?

1054


What is the relationship among database, tablespace and data file?

964


What is oracle rownum?

930


How would you go about verifying the network name that the local_listener is currently using?

2025


How do I know if oracle client is installed on windows?

1002


What is the difference between primary key and unique key and foreign key in oracle?

956


What is using clause and give example?

1015


How to retrieve values from data fields in record variables?

1087


Is there any way to find out when one specific table/view/M-view is used last time. i.e. when one specific object is used in any SELECT statement.

1324


Can you drop an index associated with a unique or primary key constraint?

999


Explain self joins in oracle?

993