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

Tell me what do you understand by a view? What does the with check option clause for a view do?

1014


What happens when the SQL Azure database reaches Max Size?

111


List the advantages of using stored procedures?

1044


what is memory-optimized nonclustered indexes

1013


How can you insert null values in a column while inserting the data?

1271


How to create a simple table to test triggers in ms sql server?

971


How to run queries with sql server management studio express?

1079


How many types of triggers are there?

1057


What is the difference between locking and multi-versioning?

983


how many type of indexing in database?

975


What is the filtered index?

1046


What is Dependency Injection and provide example?

1113


What is scan table/view and seek table/view when its occurs? : sql server database administration

1036


Can we use custom code in ssrs?

1107


what is bit datatype? : Sql server database administration

910