In a table there are 1 million records there in which 3
records are duplicate how will you find out those 3 records?
Answers were Sorted based on User's Feedback
Answer / amedela chandra sekhar
write a query eg:take emp table and empno,sal,deptno columns
have assume the duplicates.
select * from emp x where rowid>(select min(rowid) from emp
where empno=x.empno
and sal=x.sal
and deptno=x.deptno);
you will only duplicate records in the emp table.
chandumba2005@gmail.com
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / lokesh vepanjeri
select * from emp where rowid not in (select max(rowid)
from emp group by empno);
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / santosh kumar sarangi
select * from emp where empno in (select empno from emp
group by sal having count(*)>1)
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vivek singh
select * from emp1
where rowid not in (select max(rowid) from emp1 group by empno);
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / haribabu
select ename,empno,count(*) from emp group by empno having count(*)>1;
| Is This Answer Correct ? | 1 Yes | 3 No |
How to go to the older version for a mapping?
without using rank transformation how can we rank items by using some other transformations
How do you implement unconn. Stored proc. In a mapping?
How to eliminate duplicate records in informatica mapping? Explain with an example....
I have table name called Team and I have name and DOJ in that table in oracle, when I retrive the table in Informatica DOJ shows with date and time , I want want to know is it possible to get only date(MMDDYYYY) in the date data type,
What is dimensional table?
What are the types of maping in Getting Started Wizard?
Please create a mapping where I have source which has one column with name like Aman_Gupta Rakesh_Mehra Sachin_More I want the target field should contain the name in reverse order i.e Gupta_Aman Mehra_Rakesh More_Sachin. Can you please tell me what transformation would be needed to do this.
How does the session recovery work.
how to declare array in plsql?
What is the need of an ETL tool?
How to generate sequence numbers using expression transformation?