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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / nagarau puppala
select distinct country_id "unique", (case when count(country_id) > 1 then country_id else null end) "duplicate" from s_region
group by country_id order by duplicate;
Is This Answer Correct ? | 3 Yes | 4 No |
Mapping variables, parameters syntax, if you create mapping variables and parameters in mapplet can you use them in the mapping?
"Change cache" in Informatica ?
Whats there in global repository
Can I use same Persistent cache(X.Dat) for 2 sessions running parallely? If it is not possible why?If yes How?
what is the difference between Informatica 7.1 and Abinitio?
What is the function of union transformation?
explain about session partitions ?
why we need informatica
Design a mapping to load a target table with the following values from the above source?
Explain what are the different versions of informatica?
what r the transformations that r not involved in mapplet?
Why do we use DSS database for OLAP tools?