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
How can you differentiate between powercenter and power map?
Which transformation should we use to normalise the COBOL and relational sources?
my source is junk data how will u remove that junk data by using unix please any one replay me
Have you worked with/created Parameter file
What is the cumulative sum and moving sum?
Hi friends I want to know about what r the dimensions in the banking porjects and genarally how many tables r in project ?
I want my deployment group to refer an external configuration file, while i deploy in the production environment. How can i achieve it.
What are the databases that informatica can connect to windows?
What happens to map if we alter the datatypes between source and its corresponding source qualifier?
Whats the difference between informatica powercenter server, repositoryserver and repository?
How to handle decimal places while importing a flatfile into informatica?
draw informatica architecture 8.6 ?
Differentiate between sessions and batches?
Where do we use mapping variables in informatica?
Which are the different editions of informatica powercenter that are available?