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 the difference between primary key and foreign key?

Answers were Sorted based on User's Feedback



what is the difference between primary key and foreign key?..

Answer / gaytriom

A primary key is a column which uniquely identifies the
records in a table. In a broad sense, a primary key is the
mixture of a unique key and an index: A collumn with a primary
key is indexed to deliver a faster query, and doesn't allow
duplicate values to ensure specific data.

A foreign key is a column (the child collumn) in a table which
has a corresponding relationship and a dependency on another
collumn (the parent collumn) that is usually in a different
table. Parent collumns can have multiple child collumns, but a
child collumn can only have one parent collumn.

Is This Answer Correct ?    11 Yes 1 No

what is the difference between primary key and foreign key?..

Answer / vimal chauhan

Primary key does't allow null value
while foreign key allow null value

Is This Answer Correct ?    11 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

what is diffrence between debug class and trace class in asp.net ?

2 Answers  


Advantage of Update Panel over Asp.net 2.0 + C#+ Microsoft Ajax 1.0

1 Answers   InfoSpace,


What is windows active directory authentication?

0 Answers  


What is custom events?

0 Answers  


How would you get ASP.NET running in Apache web servers - why would you even do this?

1 Answers   Siebel Systems,


Which is the parent class of the ASP.NET server control?

0 Answers   Sans Pareil IT Services,


How can we apply themes to an asp.net application?

0 Answers  


What is the difference between session state and session variables ?

6 Answers   Digital GlobalSoft,


Difference between server.Execute and response.redirect ?

5 Answers   Accenture, Keane India Ltd,


Difference between .NET and previous version?

0 Answers   Microsoft, TIPL,


Who creates jsessionid?

0 Answers  


What is .net framework and what are the main components of it?

0 Answers  


Categories