How to delete same emp id in sql query for exmaple in emp
table emp id, empname, emp address. for example emp id =5,
repeated in two times in rows same id how to delete same
empid please any one of the write query send in my id

Answer Posted / ajit

DELETE FROM EMP WHERE EMPID= 5 AND ROWNUM < 2;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main difference between sql and pl/sql?

575


what is blob? : Sql dba

568


What is the use of nvl function?

628


What is set serveroutput on?

658


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

1568






what is auto increment? : Sql dba

583


What is the difference between rollback and rollback to statements?

596


what is the different between now() and current_date()? : Sql dba

535


Is sql dba a good career? : SQL DBA

544


How do sql databases work?

536


How do I make my sql query run faster?

476


what is a database transaction? : Sql dba

590


Explain correlated query work?

605


What is the difference between local and global temporary table?

560


how to extract a unit value from a date and time? : Sql dba

569