write a sql query following table some duplicate present
1
1
2
2
3
3
4
5

i want the output unique one column duplicate another
column following format like

unique duplicate
1 1
2 2
3 3
4
5

Answer Posted / babu

Hi,
SELECT DISTINCT(DEPTNO) UNIQ,E.DUP FROM EMP
LEFT OUTER JOIN
(SELECT DEPTNO DUP FROM EMP GROUP BY DEPTNO HAVING COUNT
(DEPTNO)>1) E
ON (EMP.DEPTNO=E.DUP)

please correct me if any thing wrong.

Thanks,
Babu

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by filter transformation?

543


What is Index Caches size?

610


Briefly define reusable transformation?

616


How do you load alternate records into different tables through mapping flow?

1280


How many number of sessions can one group in batches?

684






How do you load more than 1 max sal in each department through informatica or write sql query in oracle?

995


lookup transformation with screenshots

3549


How do you handle two sessions in Informatica

653


What is expression transformation?

622


what is the end to end process meaning in my project(my project is development)and functionality plz tell me

1487


what is $$$$?

1724


Plz can any one say me how to get the informatica certification materials and dumps

1589


What is informatica?

670


What is xml source qualifier transformation in informatica?

707


What is target load order?

796