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 are the differences between web role and worker role?

122


What are the functions in sql server?

955


What are sub reports and how to create them?

139


How to fetch the next row from a cursor with a "fetch" statement?

1073


Please illustrate physical database architecture? : SQL Server Architecture

992


Explain Geometry datatype in sql server 2008 with example

997


What are the main differences between #temp tables and @table variables and which one is preferred?

1088


Do you know what is bit data type and whats the information that can be stored inside a bit column?

961


Explain an incremental backup?

1008


What are data regions?

140


What is a non-clustered index?

1000


How to create a dynamic cursor with the dynamic option?

1050


Equi join and non equi join is possible with sql server?

1027


What are the types of subscriptions in SQL Server replication?

1043


Explain Geography datatype in SQL Server

1140