How to write query to Delete the records in child table
and corresponding records in parent table

Answers were Sorted based on User's Feedback



How to write query to Delete the records in child table and corresponding records in parent table..

Answer / vaishali

delete from child_table, parent_table where
child_table.parent_id=parent_table.parent_id

Is This Answer Correct ?    14 Yes 26 No

Post New Answer

More SQL Server Interview Questions

Explain various On-Delete options in a DB table. Which is the default option?

0 Answers   Akamai Technologies,


What is the use of commit?

0 Answers  


what's the difference between a primary key and a unique key? : Sql server database administration

0 Answers  


What are the different types of lock modes in sql server 2000?

0 Answers  


What is change tracking in sql server?

0 Answers  






What is the bookmark lookup and rid lookup?

0 Answers  


How to create view in stored procedure sql server?

0 Answers  


Explain for xml explicit mode?

0 Answers  


How does normalization work?

0 Answers  


What is sql server programming?

0 Answers  


What is store procedure?

0 Answers  


What is a transaction and why is it important?

0 Answers  


Categories