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
How you would rewrite the sql query to return the customerid sorted numerically?
What is the difference between a check constraint and a rule?
What is checkpoint in sql server?
What are the different SQL Server Versions you have worked on?
What is the return type of executeupdate ()?
Distinguish between commit and rollback?
What is the server name in sql server?
What is the use of sign function?
What is sparse columns of sql server 2008?
What is abstracting periodical?
Explain the Ways to improve the performance of a sql azure database?
Mention the different authentication modes in sql server.
what is normalization? : Sql server database administration
What is the difference between sql server 2000 object owner and sql server 2005 schema? : sql server database administration
What is sub-query in sql server?