adspace


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

Does view occupy space?

1028


what is spatial nonclustered index

1066


How raid can influence database performance?

1126


What are the different types of subquery?

1239


How to rebuild the master database?

1174


How can we solve concurrency problems?

1128


What is temporary table in sql server? Why we use temp table?

1027


When should you use an instead of trigger?

1060


What is standby servers? Explain types of standby servers.

1087


How to enter binary string literals in ms sql server?

1253


What is self contained sub query?

1147


How to convert character strings into numeric values?

1196


what is the difference between openrowset and openquery?

1205


How do I create a trace in sql server?

1125


What are the pros and cons of putting a scalar function in a queries select list or in the where clause?

1303