write a query to delete similar records in particular
fields(columns) in different tables

Answer Posted / madhu

delete from emp where emp_no in
(select emp_no from emp2 where emp.emp_no=emp2.emp_no)

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do temporal tables work?

692


What are the built in functions of sql?

757


which tcp/ip port does sql server run on? : Sql dba

706


1) Synonyms 2) Co-related Subquery 3) Different Jobs in Plsql 4) Explain Plan 5) Wrap 6) Query Optimization Technique 7) Bulk Collect 8) Types of index 9) IF primary key is created then the index created ? 10) Foreign Key 11) Exception Handling 12) Difference Between Delete and Trunc 13) Procedure Overloading 14) Grant Revoke 15) Procedure Argument types. 16) Functions. 17) Joins

1325


What is sql indexing?

754






What is null in pl/sql?

810


Can we use the cursor's to create the collection in PL/SQL?

697


What are views in sql?

721


Explain locks? : Transact sql

738


How can we find duplicate records in a table?

662


How many commands are in sql?

716


What is the purpose of a secondary key?

679


What is bulk collect in pl sql?

727


Does mysql support pl sql?

811


What are the operators in sql?

750