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

Answers were Sorted based on User's Feedback



How to write query to Delete the records in child table and corresponding records in parent table..

Answer / vaishali

delete from child_table, parent_table where
child_table.parent_id=parent_table.parent_id

Is This Answer Correct ?    14 Yes 26 No

Post New Answer

More SQL Server Interview Questions

How do you find the error, how can you know the number of rows effected by last SQL statement?

1 Answers  


What is snapshot replication?

0 Answers  


difference between select column name from table name where serviceid=2; and select max(column name) from table name where serviceid=2; IN ORACLE

3 Answers   Intel, Wipro,


What is the cartesian product of table?

0 Answers  


What is the maximum length of an alert name?

0 Answers  


Explain what are the different index configurations a table can have?

0 Answers  


How does stuff differ from the replace function?

0 Answers  


What is a coalesce function?

0 Answers  


Explain how dts is used to extract, transform and consolidate data?

0 Answers  


How do I partition a table in sql server?

0 Answers  


What is normalization and its types?

0 Answers  


How to get the count of distinct records. Please give me the query?

8 Answers   Value Labs,


Categories