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

Answer Posted / sanjay

delete details from details inner join master on
details.keyid=master.keyid

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to list all login names on the ms sql server?

533


What is a non clustered primary key?

508


When cursors are useful?

573


What happens on checkpoint?

612


What is the difference between sdf and mdf?

675






Which are new data types introduced in sql server 2008?

596


What is difference between index and primary key?

579


what is a deadlock? : Sql server database administration

493


Can group functions be used in the order by clause in ms sql server?

586


How self join is different from outer join?

601


How to locate and take substrings with charindex() and substring() functions?

508


What is cube dimension? : sql server analysis services, ssas

532


How each E-R model constructs can be mapped to the relational model?

553


What is the use of floor function in sql server?

540


What is the difference between cartesian product and cross join?

478