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 ssrs?

109


What is the difference between sql server 2000 object owner and sql server 2005 schema? : sql server database administration

767


Does index speed up select statements?

756


What type of locking occurs during the snapshot generation? : sql server replication

1091


Can you pass expressions to function parameters?

730


How to Update from select query in sql server?

744


How to implement service broker?

709


What are unicode character string data types in ms sql server?

812


Which command is used for user defined error messages?

749


what do you understand by change data capture?

753


in the physical file layout, where should the transaction log be stored in relation to the data file?

731


What is a dbms wizard?

777


Can we use where and having clause together?

727


How do I edit a stored procedure in sql server?

689


I applied Transactional with updatable subscriptions replication on 2 tables now i want to delete those 2 tables but i cannot delete those tables as replication is running how can i stop replication for those 2 tables(but i don't want to delete those replicated tables but i need to stop the replication) how can i do that

1655