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 the difference between a default skin and a named skin?

0 Answers   MindCracker,


what is strong name?

4 Answers   Fidelity, Infosys, Microsoft, Shriram Value Services,


Explain the significance of routing? : asp.net mvc

0 Answers  


What is the difference between Trace and Debug?

2 Answers   BirlaSoft,


Give real time examples for polymorphism, encapsulation, inheritance..

2 Answers   L&T,


Hi! Could any 1 please suggest me a free practice online exam for asp.net exams.. thanks

1 Answers  


Out of ASP or ASP.NET which one is stateless?

0 Answers   BirlaSoft,


What is OSI layer? Explain different layers.

0 Answers   MCN Solutions,


What is cookieless session id explain in brief?

0 Answers  


What is server components?

0 Answers  


what is purpose of xml control in standard controls of asp.net

1 Answers  


Can you explain what inheritance is and an example of when you might use it?

4 Answers   Siebel Systems,


Categories