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 do I install only the client tools of sql server 2000?
What is the difference between index seek vs. Index scan?
Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting are possible?
last function used in MS Access to convert sql what function will use in sql
What is the difference between composite index and covering index?
Scalability, Availability, Integration with internet, etc.)?
What will be the maximum number of index per table?
Which tcl commands are available on the sql server?
Explain about sql server login?
What command would you use to add a column to a table in sql server?
What is analysis service repository?
What is logshipping and its purpose?
Introduction of rollup clause using sum and group by clause?
Explain optimistic and pessimistic concurrency?
What is meant by indexing files?