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

What do you understand by intent locks?

0 Answers  


Tell me what is normalization? Explain different forms of normalization?

0 Answers  


Ek lifafa 10 noto se bhara hai usme 2 or 5 ke note nahi hai aur usme total 50Rs hai, to batao lifafe me kon se not kitne hia it’s a challenge thank’s

6 Answers   Broadridge,


What is data modeling and Reterminal integrity?

0 Answers  


What is primary key index?

0 Answers  


What do you mean by cardinality?

0 Answers  


Do you know what are various aggregate functions that are available?

0 Answers  


What is SQL Server?

0 Answers   Atos Origin,


How can I create a report based on a query? : sql server management studio

0 Answers  


what stored procedure can you use to display the current processes? : Sql server administration

0 Answers  


Which are the new data types introduced in sql server 2008?

0 Answers  


What is read committed?

0 Answers  


Categories