Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are the components of dbms?

954


what is a correlated sub-query? : Sql server database administration

941


What are 3 ways to get a count of the number of records in a table?

1078


What is ssrs?

129


What is log cache in sql server?

1043


Write a SQL query to make a column as unique?

1040


What is acid properties?

1099


In case you have filters in your report, when filters will be applied in cached report instance?

113


What are different types of statement?

1017


What are the restrictions applicable while creating views? : SQL Server Architecture

1023


what protocol both networks use? : Sql server database administration

971


Explain logical operators in sql server?

1107


Can I run multiple instances of sql server 2000 at the same time on one computer?

1074


Explain what are page splits? : SQL Server Architecture

1065


What are drilldown reports?

154