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

Answer Posted / satyanarayana

I think using ON DELETE CASCADE we can delete the records
from both child and parent table

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cursors? And what are the different types of cursor?

739


What is a mixed extent?

752


how we use window authentication connection with sql server.?

809


What is provisioning, billing and metering, and connection routing concepts in the service layer?

109


What is a document index?

767






What is shared lock?

645


Explain what is dbcc?

777


what is new philosophy for database devises for sql server 7.0? : Sql server database administration

662


What is the difference between clustered index and primary key?

677


explain different types of backups avaialabe in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

813


What are the operating modes in which database mirroring runs?

808


I have all the primary data files, secondary data files as well as logs. Now, tell me can I still restore the database without having a full backup? : sql server database administration

876


What command is used to delete a table from the database in the sql server and how?

739


What is a result set object returned by odbc_exec()?

723


How to create view in stored procedure sql server?

687