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
What are diverse clauses that form a part of sql?
What are the instances when triggers are appropriate?
Define cursor locking
What is a constant or literal in ms sql server?
Can you explain what is sql server english query?
Introduction of rollup clause using sum and group by clause?
What authentication modes does sql server support?
What is indexing a document?
If you lose rights to your sql server instance what are the options to connect to sql server instance? : sql server security
What is database black box testing?
What are user-defined functions (udfs) in sql server?
Which are the third-party tools used in sql server and why would you use them?
can a table be moved to different filegroup? : Sql server administration
What is the default sql server instance name?
What is table-valued sub query?