write a query to delete similar records in different tables
with same structure

Answer Posted / radha sri seshu.kolla

while creating table and giving foreign key constraint give
the key word 'on delete cascade'.automatically when the
record in the master table is delated the relaeted record
in the detail table will also be deleted.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are indexes and views important to an organization?

525


What is multiple partition?

535


Explain what is a view?

590


Can a table have no primary key?

547


What does select count (*) mean in sql?

540






Are subqueries better than joins?

525


Why query optimization is needed?

509


Lookups are a key component in sql server integration services (ssis). Explain its purpose?

529


Can we create foreign key without primary key?

527


What is the example of procedure?

509


What is the difference between the sql*loader and import utilities? : aql loader

594


Can a foreign key have a different name?

507


Why does sql need a server?

559


Can function return multiple values in sql?

520


What is vector point function?

560