What is referential integrity and how is it achieved?

Answer Posted / koteshwar rao .palleboina

when foreign key constraint is created on a column
referential integrity is achieved .
when foreign key constraint is created on a column,that
column reference other column in the different table or
even in the same table but the reference column must be
primary key or unique key.
when a new value is added in a column referenced with
foreign key ,then the foreign key relation checks whether
the new value matches with the reference column or not.
If value matches then they are allowed into the table

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between push and pull subscription? : sql server replication

607


Tell me what are cursors and when they are useful?

506


If user is owning any SQL Objects, can we drop that user

1602


What is measure group, measure? : sql server analysis services, ssas

545


What is the recommended total size of your memory optimized tables?

524






List out the differences between global and local temp tables in sql server?

569


What are the different types of sql server replication? : sql server replication

622


What do you mean by an execution plan? Why is it used?

528


How to connect sql server management studio express to sql server 2005 express?

579


Why you need indexing? Where that is stored and what you mean by schema object? For what purpose we are using view?

494


How many primary keys are possible in a table?

515


How to drop existing views from a database in ms sql server?

528


How to create new tables with "select ... Into" statements in ms sql server?

510


Issues related in upgrading SQL Server 2000 to 2005 / 2008

1499


Distinguish between commit and rollback?

547