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

***********
Delete from P_table where P_Id=C_Id
***********

This is only aplicable if you have defined the foreign key
in the child table with the constraint on Delete Cascade.
Else you will get a Integration error.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I create a separate index on each column of a table. What are the advantages and disadvantages of this approach? : Sql server database administration

1031


Where actually sql azure database is hosted?

161


What is sql server profiler?

952


Explain the purpose of indexes?

899


What is plan freezing?

908


What is a partition key?

883


where can you add custom error messages to sql server? : Sql server administration

1043


How to get a list of columns in a view using "sys.columns" in ms sql server?

926


What is difference between clustered index and non clustered index?

1027


What is a collation?

1034


What do you mean by a dependent functionality in a build?

1062


what are the different stages of Report Processing?

125


Explain partitioned view?

1018


let's assume you have data that resides on sql server 6.5. You have to move it sql server 7.0. How are you going to do it? : Sql server database administration

899


How to create a new login name in ms sql server?

992