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 & foreign key?

Answer Posted / pravin

The primary key of a relational table uniquely identifies
each record in the table. It can either be a normal
attribute that is guaranteed to be unique (such as Social
Security Number in a table with no more than one record per
person) or it can be generated by the DBMS (such as a
globally unique identifier, or GUID, in Microsoft SQL
Server). Primary keys may consist of a single attribute or
multiple attributes in combination.

Examples:
Imagine we have a STUDENTS table that contains a record for
each student at a university. The student's unique student
ID number would be a good choice for a primary key in the
STUDENTS table. The student's first and last name would not
be a good choice, as there is always the chance that more
than one student might have the same name.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create additional tablespaces for an new database?

1022


How does oracle handle read consistency?

1093


How to start instance with a minimal initialization parameter file?

1037


How to build data dictionary view an new database?

1005


Give the different types of rollback segments.

1028


How to change program global area (pga) in oracle?

1084


Why do I get java.lang.abstractmethoderror when trying to load a blob in the db?

1012


What do you mean by redo log file mirroring?

1024


What types of joins are used in writing subqueries?

982


Explain about your project and its relation to the current job position you are applying to?

1004


How to export data to a csv file?

1296


Where is the export dump file located?

1141


How i can handle exception in large code like 1000 line without distrubing the code or without exception handler sction?

3197


What are the common oracle dba tasks?

1141


What is the quickest way to export a table to a flat file?

966