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

What is the database url?

1090


Differentiate between delete and truncate table?

1059


Explain the various types of normalization.

1085


Can you tell any two advantages of stored procedures?

1058


What advantages does DBMS have over traditional file systems?

1037


What are database connection details?

1168


How to do Data size testing? Who does this testing (Developer or tester)?

2566


What is a database lookup?

1098


What are indexes in oracle?

1090


What is a database connection string?

1126


wHat Is THE difference between MOVEL and MOVEL(P)……….. CAN ANYONE EXPLAIN ME..

3097


What are the advantages of views in a database?

1181


how to reject duplicates in source sequential file and if by filter option then where is that filter option in the sequential file.

1617


What is the role of driver manager?

1017


What is a Transformation?

1028