Answer Posted / nitesh
It is mainly used in referential integrity constraints.
When you use primary key/candidate key of one relation(say,
r1) as foreign key in other relation(say, r2), you want
changes made to primary key/candidate key of r1 must reflect
in foreign key of r2. And this can be achieved by CASCADE
constraint.
eg. consider two relations account, branch(with primary key
branch_name)
create table account(.....
foreign key branch_name references branch
on delete cascade
on update cascade
..........)
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the two authentication modes in sql server?
What is the difference in accessing db between sql server vs sql azure?
What is isnull() operator?
What is normalization and denormalization in sql server?
Explain some stored procedure creating best practices or guidelines?
how would you write a sql query to compute a frequency table of a certain attribute involving two joins? What changes would you need to make if you want to order by or group by some attribute? What would you do to account for nulls?
What is difference between Datepart() and Datename() in SqlServer?
How to receive output values from stored procedures?
What is sql service broker?
What is fill factor and pad index?
What is 1nf 2nf?
What are the advantages of sql stored procedure?
What happens when converting big values to numeric data types?
Explain what is the use of custom fields in report?
How does using a separate hard drive for several database objects improves performance right away?