adspace


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

Answer Posted / krishnakumar

create table employee(id int references authors(au_id) ON
DELETE CASCADE,firstname(30))



this is chilld table .in this query use on first child table
constraints values delete next parent table constrains value
delete ... this is ON DELETE CASCADE CONCEPT

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can one drop a column from a table?

1098


Equi join and non equi join is possible with sql server?

1137


Is it possible to have clustered index on separate drive from original table location?

1046


What is sql or structured query language?

1230


How can I check that whether automatic statistic update is enabled or not?

1120


What is a view in sql?

1046


What is the primary use of the model database?

1154


How to rebuild the master database?

1173


what is the difference between openrowset and openquery?

1204


List the ways in which dynamic sql can be executed?

1093


How raid can influence database performance?

1126


Does view occupy space?

1028


What is a coalesce function?

1290


How to connect php with different port numbers?

1196


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

1139