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 / arijitnit

delete from child_table where values=...
on delete cascade..
U have to set the foreign key as the parent super key

Is This Answer Correct ?    11 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain boyce and codd normal form(bcnf)?

922


Differentiate between a primary key and a unique key.

1050


How to replace the Query Result 'Null Value' with a text ?

1014


What are translations and its use? : sql server analysis services, ssas

1027


Find nth lowest salary or get nth lowest salary?

1007


Why do we use non clustered index?

1061


What number aggregate functions are accessible there in sql?

1047


Explain trigger classes i.e. Instead of and after trigger?

861


What is the purpose of sql profiler in sql server?

998


What is nolock?

960


How to get a list all databases on the sql server?

1076


What is the fillfactor concept in indexes?

965


While you are inserting values into a table with the insert into .. Values option, does the order of the columns in the insert statement have to be the same as the order of the columns in the table?

965


Explain the database you used in your final year project?

1019


What are the dmvs? : sql server database administration

1043