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

Answer Posted / arijitnit

delete from child_table where values=...
on delete cascade..
U have to set the foreign key as the parent super key

Is This Answer Correct ?    11 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use trigger in sql server with example?

509


What does asynchronous call backs means?

619


What is conditional split?

537


What is meant by datasource?

510


How do I port a number to sql server?

500






How would we use distinct statement? What is its use?

600


how you can move data or databases between servers and databases in sql server? : Sql server administration

481


What happens when converting big values to integers?

566


What is the difference between function and stored procedure in sql server?

481


How do I run a trace in sql server?

496


What does the on update no action do?

586


How much memory that we are using in Logshipping Concept?

1364


Why we need sql server?

550


What methods do you follow to protect from sql injection attack?

512


What do you mean by subquery?

579