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

Why are you getting errors when creating a new odbc dsn?

1213


How many joins in sql server?

953


What is DCL?

1047


What is the function of sql server agent windows service?

1084


Can you please differentiate between a primary key and a unique key?

1005


What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas

1043


How to find Duplicate Records In table?

1013


How to configure and test odbc dsn settings?

1155


What are data files?

1034


write an SQL query to list the employees who joined in the month of January?

1676


Is truncate a dml command?

940


Explain indexes disadvantages?

1076


Thanks to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?

944


What are the different types of subquery?

1150


What is sparse columns of sql server 2008?

1046