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



In a table there are 1 million records there in which 3 records are duplicate how will you find ou..

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

In a table there are 1 million records there in which 3 records are duplicate how will you find ou..

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

In a table there are 1 million records there in which 3 records are duplicate how will you find ou..

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

In a table there are 1 million records there in which 3 records are duplicate how will you find ou..

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

In a table there are 1 million records there in which 3 records are duplicate how will you find ou..

Answer / teja_dwh

use this query u will get this.For example i am taking emp
table

select * from emp where rowid not in(select max(rowid) from
emp group by empno)

Is This Answer Correct ?    0 Yes 1 No

In a table there are 1 million records there in which 3 records are duplicate how will you find ou..

Answer / haribabu

select ename,empno,count(*) from emp group by empno having count(*)>1;

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Informatica Interview Questions

What is power center repository?

1 Answers  


what is granularity,what type of granularity we will take in fact tables either lowlevel or highlevel,if two tables having same granularity that is posiable or not

0 Answers  


Hi Experts, Performance Wise Which transformation is better in LOOKUP AND JOINER TRansformations? Why? Can anybody please explain it ? Please help me out from this Question. Thanks In Advance.

2 Answers   CTS,


What is the difference between informatica 7.0 and 8.0?

0 Answers  


Can anyone please distinguish what is Inner join and Outer join

2 Answers   Wipro,






How can you display only hidden files in UNIX

4 Answers   Cognizant, L&T,


hi all, Can anyone please tell me the relationship between informatica and business objects

1 Answers  


What is the actual work done in Development and in the production depts in building a datawarehouse. Which dept is more interesting and career oriented .

1 Answers  


My i/p is like below 1,2,3,4,5,6,7,8,9,10....100 I want that to be populated in two o/p as below o/p-1: 10,20,30,40,50,60,70,90... o/p-2: 11,21,31,41,51,61,71,81,91.... How to do it in ingotmatica...

2 Answers   Accenture,


Briefly define a session task?

0 Answers  


In Flat file, I need Header, Footer and No of rows in Last column. How will u achieve in Mapping Level(With out using Session Level Property)?

1 Answers   iNautix,


All active transformations r passive or not?

7 Answers  


Categories