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

Can we check locks in database? If so, how can we do this lock check?

924


Which are the important points to note when multilanguage data is stored in a table?

970


Explain intellisense for query editing

1014


How do I connect to sql server database?

995


What are the different normalization forms?

1083


What are the advantages of policy management?

979


How self join is different from outer join?

1099


How do I create a stored procedure in dbml?

987


How connect excel to sql server?

969


Differentiate between a local and a global temporary table?

934


What were the latest updates to SQL Azure service?

111


How do I port a number to sql server?

1016


How does index makes search faster?

953


Explain transaction server auto commit?

1023


How you would rewrite the sql query to return the customerid sorted numerically?

971