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 / mail2sentha
DELETE FROM EMP WHERE ROWID NOT IN(SELECT MIN(ROWID)FROM
EMP GROUP BY EMPID);
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is native sql query?
What are the basic sql commands?
Does truncate remove indexes?
how to select unique records from a table? : Sql dba
What is sql query optimization?
what is error ora-03113: end-of-file on communication channel?
How to call a javascript function from pl sql?
What is the use of index in sql?
What is sap sql?
What is the difference between union and union all command?
Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?
Explain what is a view?
What is trigger types of trigger?
How many scalar data types are supported in pl/sql?
Is truncate ddl or dml?