How to write query to Delete the records in child table
and corresponding records in parent table
Answer Posted / 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 View All Answers
How to rebuild all indexes on a single table?
What is row-level compre?
What is dbcc?
What is a data source or ds? : sql server analysis services, ssas
Explain identity in sql server?
In what three ways is the return statement used in a stored procedure?
OPTIMIZATION OF SP,CURSOR,TRIGGERS
What is deploy, process and build? : sql server analysis services, ssas
How to insert and update data into a table with "insert" and "update" statements?
If we delete pack Spec what will be the status of pack Body ?
Hi, I Created 3 Tables Person(PersID[prkey],Name,Email,Password), Project(ProjName,ProjID[prkey],ProjLeader,ProjManager) & ProjectInvolvement(EntryDate,ProjID[frkey],PersID[frkey],ProjDuration). For this how can i INSERT,UPDATE & DELETE Through PROCEDURE? Please Post the Answer for me. Desai.
What happens if null values are involved in arithmetic operations?
Explain primary key in sql server?
How to find the source of a table in sql server?
Can you please explain the difference between primary keys and foreign keys?