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 |
Can we run session without using workflows?
Can anyone please distinguish what is Inner join and Outer join
Transformer is a __________ stage option1:Passive 2.Active 3.Dynamic 4.Static
How to enter same record twice in the target table,explain?
As union transformation gives UNION ALL output, how you will get the UNION output?
Hi, I am new to Informatica, What is a flat file and how to use flat file in infomratica please help me.
In Real Time what are the scenarios u faced, what r the tough situations u have overcome, and explain about sessions.
2 Answers Cap Gemini, CTS, TCS, Tech Mahindra, Wipro,
Which kind of index is preferred in DWH?
Consider two cases: (1) Power Center Server and Client on the same machine (2) Power Center Sever and Client on the different machines what is the basic difference in these two setups and which is recommended?
What is the sequence generator transformation in informatica?
How the dimensions will be loaded?
How can u work with remote database in informatica?did you work directly by using remote connections?