write s sql query following table some duplicate present i
want unique one column duplicate another column display?

name id
a 1
a 1
b 2
b 2
c 3
i want the required output like
unique duplicate
name id name id
a 1 a 1
b 2 b 2
c 3

Answer Posted / anto

unique

select distinct name,id from table

duplicate

select name,id from table
group by name,id
having count(name||id) > 1

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Reusable transformation and shortcut differences

1379


Where do we use mapping variables in informatica?

614


What is data movement mode in Informatica and difference between them?

621


What is data caches/ index caches?

614


What is joiner change?

679






How to configure mapping in informatica?

674


Can anyone tell me the new features in Informatica 9 Version?

1532


How is Source Side push down optimization different to just providing a SQL override in Source qualifier transformation.

1336


What is fact table? Explain the different kinds of facts.

614


What is the Process to creating lookup transformation in informatica

585


difference between informatica 8.1.1 and 8.6

3244


What is a snowflake schema?

573


what is the difference between informatica6.1 and infomatica7.1

1719


Explain why we use partitioning the session in informatica?

614


What is InformaticaPowerCenter?

688