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...

How to write query to Delete the records in child table
and corresponding records in parent table

Answer Posted / arijitnit

delete from child_table where values=...
on delete cascade..
U have to set the foreign key as the parent super key

Is This Answer Correct ?    11 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are diverse clauses that form a part of sql?

1108


What are the instances when triggers are appropriate?

1017


Define cursor locking

1058


What is a constant or literal in ms sql server?

1096


Can you explain what is sql server english query?

1052


Introduction of rollup clause using sum and group by clause?

1009


What authentication modes does sql server support?

1147


What is indexing a document?

1085


If you lose rights to your sql server instance what are the options to connect to sql server instance? : sql server security

1104


What is database black box testing?

1070


What are user-defined functions (udfs) in sql server?

1048


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

958


can a table be moved to different filegroup? : Sql server administration

1016


What is the default sql server instance name?

1084


What is table-valued sub query?

1026