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 / akshita
delete from emp where rowid not in (select max(rowid) from
emp group by empno)
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
What are the types of functions in sql?
What is cross join sql?
What is the difference between function, procedure and package in pl/sql?
Is sql free?
How do you drop a trigger?
How do you clear the screen in sql?
Cite the differences between execution of triggers and stored procedures?
What sql does db2 use?
what is view? : Sql dba
What is the difference between a procedure and a function?
Why use subqueries instead of joins?
What are pl/sql packages?
First round ------------------- - Procedure - Packages - Views - Virtual tables - Can we use dcl with in function? - Joins and few scenarios - Triggers and its type - Pragma, type and its functionality - How to create db link in oracle - Materialized view - How to find duplicate values from table? - Cursor and its functionality - Write a script to display friday and its date from a entire year. - Exception Handling Second round ------------------------ Gave a scenario like. Need to write a function to perform. When user try to change a password. It must not be last five password and a given password can be combination of characters, symbols, upper and lower case.
What is sql dialect?
What are the types of queries in sql?