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

How to call shell scripts from informatica?

795


How would you join a node to the already existing domain?

932


What are the basic requirements to join two sources in a source qualifier transformation using default join?

852


Explain joiner transformation in informatica

921


How can one identify whether mapping is correct or not without connecting session?

1190


What is the need for an etl tool?

874


Could you explain what is enterprise data warehouse?

800


What does refresh system mean, and what are its distinctive choice?

822


How to improve the performance of a session using sorter transformation?

952


Explain load alternative records / rows into multiple targets - informatica

943


Where can we find the throughput option in informatica?

872


Sequence generator, when you move from develoment to production how will you reset

1699


tell me the rules and responsblites in our project(my project is development)

1743


How you can differentiate between connected lookup and unconnected lookup?

858


How to load the name of the current processing flat file along with the data into the target using informatica mapping?

1006