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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between NOROW and LOCKROW?

2232


What is the difference between commit and rollback?

504


Write a query to find 5th highest amount paid from the customer table.

530


When do you think a developer should use sql server-based cursors?

520


Would you store your query in a ssrs report or a database server? State the reason why?

108






What is a data collection table?

540


How will you add a dimension to cube? : sql server analysis services, ssas

551


How to replace null values in expressions using isnull()?

641


Can sql server 2016 run on windows 7?

500


Explain collation?

618


Explain what stored procedure sp_replcounters is used for? : sql server replication

998


How to drop an existing table with "drop table" statements in ms sql server?

550


which backup strategy you are following at ur company

1728


What causes index fragmentation?

575


What are the disadvantages of merge replication?

770