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...

what is primary key,unique key, foreign key? can u teach me
in simple language?

Answer Posted / sathish

1)Primary key is unique key but foriegn key always refers
to
primary key.

2) Primary keys enforce entity integrity by uniquely
identifying entity instances. Foreign keys enforce.

3)Primary key is unique
primary key is not NULL and

foreign key is NULL
foreign key reference as Primary key in another table.

4) primary key is used to identify a row and it doesnot
allow
null values. It avoids duplication of rows.

whereas foreign key refers to a column or combination of
columns included in the defenition of referential integrity.


referential integrity by completing an association between
two entities.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is rcp,if rcp disabled what happen?

2215


What is the difference between oracle and MS Access?

1062


Is hive a database?

941


Which three commands cause a transaction to end?

1062


What is the difference between primary and candidate key?

1124


what is transaction state, buffer management, shadow paging

3451


where can i free download sqlserver2008..i can install sqlserver2008 without visual studio 2008 and work on it

2003


Difference between sql and mysql?

2088


Explain data independence & its types.

1043


Explain storage manager?

1018


aht is the difference b/w network & hierarchial & relational dbms????

2205


Explain transaction manager?

1068


How to do performance tunning a database in DB2 V8.2 UDB in linux

2261


Explain the record term used in database.

1068


Two tables emp(empid,name,deptid,sal) and dept(deptid,deptname) are there.write a query which displays empname,corresponding deptname also display those employee names who donot belong to any dept.

1893