what is primary key,unique key, foreign key? can u teach me
in simple language?

Answer Posted / teju

PRIMARY KEY :
IN THE TABLE we can find only one record as
uniqely & also it is not null.

unique key:
uk is to search any record as uniquely& when it
is declared it should be only one null values.

Fk:
fk is to maintain the relations bet two tables
as an duplicate values.means to not null.
e.g
1> stud(stud_id,stud_name);
2> stud_det(stud_id,addr);
In this table stud_id is an pk & In the stud_det as
stud_id is used as an duplicate.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens when shared and exclusive locks are applied on data item?

595


how to configure oracle 10g in java1.5 and tell me know how to set class path in system?

1591


What is the function of cluster index?

617


What is the difference between a stored procedure and a query?

592


How do I setup a database connection?

520






What is the Difference Primary key and Unique Key

581


hai if any one having any project sample table structure please froward to my mail id tauseefwst@yahoo.com

1947


issues involved in modeling and building data werahouses

1560


Is database a hardware or software?

540


What are the various ways to execute a query in teradata?

2195


Give the syntax of exception handling used in DBMS?

655


What do you mean by foreign key and primary key?

625


what is transaction state, buffer management, shadow paging

2929


List various types of log-based recovery in DBMS.

572


What is dialect in database?

561