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

How do I find duplicates in a single column in sql?

534


Mention what is the function that is used to transfer a pl/sql table log to a database table?

484


What are the types of sql commands?

548


what are the different functions in sorting an array? : Sql dba

579


Mention what is the plv (pl/vision) package offers?

636






How can we make an if statement within a select statement?

539


How many primary keys can a table have?

532


what is the difference between truncate and drop statements? : Sql dba

552


What are sql ddl commands?

545


Explain locks? : Transact sql

569


what is online transaction processing (oltp)? : Sql dba

523


What is a primary key sql?

559


What pl/sql package consists of?

636


how to drop an existing index in mysql? : Sql dba

535


Is sql a backend language?

618