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

What is join query?

938


What is format parameter in ssrs?

150


What is a partition function in sql server?

1216


What are the different authentication modes in sql server? How can it be changed?

1140


How to round a numeric value to a specific precision?

1126


It is important form e to get the information from log files of applications executed by the task scheduler? Does sql studio save these log files? : sql server management studio

1089


Explain about temporary stored procedure?

1095


How many types of relations are there between dimension and measure group? : sql server analysis services, ssas

1247


Tell me what is a linked server?

1086


What are the rendering extensions of ssrs?

160


Do you know what are the reporting services components?

1020


What stored by the msdb?

1046


What do you mean by normalisation?

1103


How do you improve the performance of a SQL Azure Database?

137


What the different topologies in which replication can be configured?

1144