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 |
What is the function of union transformation?
suppose if we have dublicate records in a table temp n now i want to pass unique values to t1 n dublicat values to t2 in single mapping using aggregator & router? how
What is a command that used to run a batch?
wht is cdc?how to use it in creation of mappings?
How you can differentiate between connected lookup and unconnected lookup?
In real time scenario where can we use mapping parameters and variables?
how we load the data from source to staging area
There are two sessions are connected to the workflow. When the first session run load the data(employees data sum_salaries <= 1000000) into the target1. When the second session run load the data(employees data sum_salaries > 1000000) into the target2. How to achieve this?
3,if our source containing 1 terabyte data so while loading data into target what are the thing we keep in mind?
how to get flatfile containg 10 records half records one target another half another target
What is A cache?
if i have a delimited file as source so how can we seperate this file into three diff targets?