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?

Answers were Sorted based on User's Feedback



What is the use of CASCADE CONSTRAINTS?..

Answer / naresh

If you specify this option, later when you delete a row in
the parent table, the database server also deletes any rows
associated with that row (foreign keys) in a child table.
The principal advantage to the cascading-deletes feature is
that it allows you to reduce the quantity of SQL statements
you need to perform delete actions.

Is This Answer Correct ?    14 Yes 0 No

What is the use of CASCADE CONSTRAINTS?..

Answer / kunal sain

to drop the constraint from child table when dropping the
constraint from parent table.

Is This Answer Correct ?    10 Yes 1 No

What is the use of CASCADE CONSTRAINTS?..

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

More SQL Server Interview Questions

What is pessimistic concurrency?

0 Answers  


What is database black box testing?

0 Answers  


What is forward - only cursors / read only cursor?

0 Answers  


Can we create clustered index on composite key?

0 Answers  


What is the difference between composite index and covering index?

0 Answers  


explain different types of cursors? : Sql server database administration

0 Answers  


How to convert a unicode strings to non-unicode strings?

0 Answers  


what is Data Transformation Services (DTS) ?can u explain me in detail?

5 Answers   TCS,


How to find out the list schema name and table name for the database?

0 Answers  


What changes in the front end code is needed if mirroring is implemented for the high availability? : sql server database administration

0 Answers  


Mention the different types of replication in sql server.

0 Answers  


what is denormalization and when would you go for it? : Sql server database administration

0 Answers  


Categories