Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the use of CASCADE CONSTRAINTS?

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


Please Help Members By Posting Answers For Below Questions

You notice that the transaction log on one of your databases is over 4gb the size of the data file is 2mb what could cause this situation, and how can you fix it?

1089


Are all views updatable ?

1117


Which are the third-party tools used in sql server and why would you use them?

862


Write a SQL query to make a column as unique?

980


How to add additional conditions in SQL?

985


What does it mean to invest in the index?

920


How to use subqueries in the from clause in ms sql server?

1119


what is the difference between openrowset and openquery?

1043


What is difference between clustered and non clustered index?

943


How to find the version of sql server? : sql server database administration

1066


What is the difference between upgrade and migration in sql server?

1045


Explain trigger and its types?

1025


How can I track the changes or identify the latest insert-update-delete from a table?

924


What the class forname () does?

1003


What is the difference between grant and with grant while giving permissions to the user?

920