What is the use of placing primary key and foreign key
constrains on columns.

Answers were Sorted based on User's Feedback



What is the use of placing primary key and foreign key constrains on columns...

Answer / monal

TO CREATE REFERENTIAL INTEGRITY BETWEEN 2 TABLE.

Is This Answer Correct ?    3 Yes 0 No

What is the use of placing primary key and foreign key constrains on columns...

Answer / jagadeesh b

If you maintain this relation ship you can get more advantages

1)you can not delete primary table directly..

2)duplicate values are not allowed in primary key table.

3)Null values are not inserted into primary key table so
validation is very easy fro m front end.(for ex; .net 2005).




Is This Answer Correct ?    3 Yes 0 No

What is the use of placing primary key and foreign key constrains on columns...

Answer / deepak

1) PRIMARY KEY IS USED AS UNIQUE KEY, FOR AVOID DUPLICATION.
2) FOR VALIDATING DATA FROM PRIMARY KEY TABLE FOREIGN KEY USE.

Is This Answer Correct ?    1 Yes 0 No

What is the use of placing primary key and foreign key constrains on columns...

Answer / rajendraprasad cherukuri

To segregate the data in different tables belongs to a
particular entity so that data can be retrieved when
required more economically and in a faster way.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

What are the source of constraints?

0 Answers  


Comment,Datatypes are unlimited

0 Answers   IBM,


What is master database? : SQL Server Architecture

0 Answers  


explain the type of contraints

3 Answers  


What is snapshot replication?

0 Answers  






Can you explain what is sql server english query?

0 Answers  


What is a Stored Procedure?

8 Answers  


Assume,there are three tables in a database, Can i have both primary key and foreign key for each table in the same database?

4 Answers  


what are the problems in logshipping?

3 Answers  


What is the distinction amongst delete and truncate?

0 Answers  


A trigger can reference objects outside the current database? State true or false.

0 Answers  


How does clustered and non clustered index work?

0 Answers  


Categories