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

delete from c from child c inner join parent
on c.childid = parentid

Is This Answer Correct ?    2 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of dml?

965


Tell me what is de-normalization and what are some of the examples of it?

993


Difference between DELETE and TRUNCATE?

1033


What are trace flags and mention a few common trace flags used with sql server?

1068


What is dbcc?

1112


List out the differences between global and local temp tables in sql server?

1034


What are the differences between sql server and mysql.

1071


Explain what is cte (common table expression)?

1106


what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration

1010


Explain the collation?

1080


What is query optimization process?

983


How do you trace the traffic hitting a sql server?

1119


What is trigger in salesforce?

953


I applied Transactional with updatable subscriptions replication on 2 tables now i want to delete those 2 tables but i cannot delete those tables as replication is running how can i stop replication for those 2 tables(but i don't want to delete those replicated tables but i need to stop the replication) how can i do that

2002


Explain query editor regions

1030