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

I am Unable to load the FixedWith FlatFile Into The Target.What Is The Reason. PLZ Help Me..

1 Answers  


WE HAVE 10 RECORDS IN SOURCE IN THAT GOOD RECORDS GO TO RELATIONAL TARGET AND BAD RECORDS GO TO TARGET FLAT FILE ? HERE IF ANY BAD RECORDS MEANS ITS LOAD INTO FLAT FILE AND SEND AN EMAIL , IF NO BAD RECORDS MEANS NO NEED TO SEND EMAIL . PLZ HELP ME ...

1 Answers  


what are the limitations for bulk loading in informatica for all kind of databases and transformations?

3 Answers   Accenture, CSC,


Under which circumstances, informatica server creates reject files?

0 Answers   Informatica,


we have three columns and two rows. col1 col2 col3 a b c want to change into 2 columns and 3 rows ,how? col1 a col2 b col3 c which transformation u'll use and how?

3 Answers   Cognizant,






Hi, I have one scenario.. i want to insert 4 times (Duplicate) a row in the target. Please help me . source row: abcabc Tgt table: abcabc abcabc abcabc abcabc

10 Answers   Cap Gemini, IBM,


What is polling?

1 Answers  


my source contain data like this cno cname sal 100 rama@gmail.com 1000 200 karuna@yahoo.com 2000 i want load my data to the target is cno cname sal 100 rama 1000 200 karuna 2000 plz send the answer

5 Answers   IBM, TCS,


i have source flat file like 1 a,1 b,1 c,2 a,2 b,2 c i want output as 1 a,b,c and 2 a,b,c ... how can achieve this

5 Answers   TCS,


Where do you create/define mapping parameter and mapping variable?

1 Answers  


i have 2 mapings for this 2 mapings i want use only one lookupt/r how?

3 Answers   Wipro,


what r the transformations that r not involved in mapplet?

8 Answers   Wipro,


Categories