write a query for how to eliminate the duplicate rows
without using distinct?
Answers were Sorted based on User's Feedback
Answer / mani
DELETE FROM EMP WHERE ROWID NOT IN (SELECT MAX(ROWID)FROM
EMP)GROUP BY EMPNO;
| Is This Answer Correct ? | 10 Yes | 2 No |
Answer / madhu
DELETE FROM EMP WHERE ROWID NOT IN (SELECT MAX(ROWID)FROM
EMP GROUP BY EMPNO);
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / czarabid
it's very simple the question is to delete the duplicated
records and it's solution is here
DELETE FROM TABLE_NAME1 t1 WHERE ROWID </> any(SELECT ROWID
FROM TABLE_NAME1 t2 WHERE t1.column1=t2.column1);
this will delete only the redundant records leaving only one
copy of the same records in the table.
If you want to delete all the records which are redundant
then the solution is here
DELETE from table_name1 t1 where rowid <> any (select rowid
from table_name1 t2 where t1.no=t2.no)
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / murali udayagiri
Assume some duplicate data is there in emp table. Try the
below to eliminate duplicate.
select * from emp
union
select * from emp;
Thanks,
Murali Udayagiri
| Is This Answer Correct ? | 2 Yes | 5 No |
Answer / bharu_295
select count(*),col1,col2 ..... from table_name
groupby col1,col2.....
having count(*)>1
| Is This Answer Correct ? | 2 Yes | 9 No |
How to load last n records of file into target table - informatica
what is the size of your data warehousing?
What are teh different tasks that can be created in workflow manager?
What is meant by lookup transformation? Explain the types of lookup transformation?
What are the different types of repositories created using informatica?
Issue with Update override at Target table in Informatica.
In a table, 4 person having same salary. How to get Third person record only?
Why we use stored procedure transformation?
hi friends ... i have insurance project(informatica),can you please tell me how many table and mappings we need to use?and explain me.. thank you
Define maping and sessions?
What are the phases in SDLC?
suppose a session is failed after a transformation , from where that session will run again , i.e . from beginning or from that transformation ?