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

Describe how to use the linked server?

1198


What is update locks?

932


You want to implement the one-to-one relationship while designing tables. How would you do it?

1011


How to list all tables in the database using odbc_tables()?

1112


How adventureworkslt tables are related?

977


What is meant by dirty read?

1037


Please differentiate between a local and a global temporary table?

1053


What are commonly used mssql functions in php?

1136


Explain insert into select statement?

997


Explain what is analysis service repository?

1045


What is a derived table?

985


Define cursor locking

1053


How to convert numeric expression data types using the cast() function?

1116


Which trace flags are enabled in sql server?

1067


What is the definition for sql server 2000?

1137