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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you start single user mode in clustered installations?

525


What is @@rowcount in sql?

566


Mention the different authentication modes in sql server.

536


why would you call update statistics? : Sql server database administration

577


What is a functions and types in sql server?

598






Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?

544


how many bits ip address consist of? : Sql server database administration

464


What is the difference between resultset and resultsetmetadata?

521


How to compare the top two records using sql?

768


plss anybody specify tha constrian management system in dbms

1573


List layers of abstraction microsoft architectured to provide relational db through cloud platform ?

161


What is attribute relationships, why we need it? : sql server analysis services, ssas

508


When you use @@error and try-catch?

576


can a database be shrunk to 0 bytes, if not, why? : Sql server administration

613


Why Master database is required?

607