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

how do you determine the Load performance of any query in sql server {example how do u determine performance of a select stmnt which returns Dynamically many no of records ... some times 100,1000,10000 etc., }

2267


What are the underflow and overflow behaviors on float literals?

1061


What is the New in SQL server 2008?

922


What is a ddl statement?

859


What are the different types of subquery?

1101


Explain transaction server explicit transaction?

882


how can you attach more than 20 ldf files in sql server

1951


Do you know what are the properties of the relational tables?

984


How to Check if table exists in sql server?

1075


what are the different types of SSRS reports?

147


What is the difference between getdate and sysdatetime?

944


what is spatial nonclustered index

948


What is clustered vs nonclustered index?

888


Write an sql query to find first weekday of the month?

867


Explain what are the events recorded in a transaction log?

938