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 / raviraj bhardwaj

Primary key - Primary key means main key
def:- A primary key is one which uniquely identifies a row
of a table. this key does not allow null values and also
does not allow duplicate values. for ex,
empno empname salary
1 priya 35000
2 preeti 34000
3 niharika 40000

it will not the values as follows:
1 priya 35000
1 preeti 34000
niharika 35000


unique key~ unique key creates non clustered index by
default.it allows "one null value".

forigen key~
when the primary key of one table injected in other table to
make a relationship then the other key of the other table is
called foreign key.
for ex-
Dept table employs
deptno deptmame deptloc eid ename eadd deptno

in it deptno inter relate bothe the tables so that deptno
works here as a forigen kye..

Is This Answer Correct ?    15 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why merge statement is used inside the database?

1092


List the properties of a transaction.

1054


Which database is best to store images?

1042


Which database does facebook use?

974


You are creating a Index on EMPNO column in the EMPLOYEE table. Which statement will you use?

1222


What is the use of graph database?

1033


What is the best database?

982


Which is the best graph database?

949


what is transaction state, buffer management, shadow paging

3450


What is dialect in database?

969


Explain inner and outer joins with examples.

1172


What is database collection?

1008


Differentiate between extension & intension?

1422


What is the candidate key used for?

1087


How do I manually create a database?

1180