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

Can two tables have the same primary key?

1130


What is TDS(Tabular Data Stream) Gateway?

121


How can we determine what objects a user-defined function depends upon?

945


If a user does not have permission to a table, but has permission to a view created on it, will he be able to view the data in table?

887


Explain the difference between cross join and full outer join?

921


What is the current limitation of the size of SQL Azure DB?

124


How to create a simple user defined function in ms sql server?

966


Differentiate between mongodb vs. Sql server?

1028


Explain some stored procedure creating best practices or guidelines?

869


What is temporary table in sql server? Why we use temp table?

902


What are the different types of upgrades that can be performed in sql server?

1114


Can you pass expressions to function parameters?

1030


What is the use of keyword with encryption. Create a store procedure with encryption?

899


When to use null data driven subscription?

196


How do you identify a foreign key?

965