I am having a table with columns
ID NAME
1 x and the requirement is to get the o/p like this
1 y ID Count(*)
1 z 1 3
2 a 2 2
2 b
3 c
so write a sql query to get the id n how many times its
count of repetition n there u shouldn't get the distinct(i.e
id-3)
Reply as early as possible
Answer Posted / sambu
select id,count(*) from <table name>
group by id having count(*)>1;
The above gives us desired output
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is the scenario which compels informatica server to reject files?
How can informatica be used for an organization?
Define mapping and session?
What is Index Caches size?
How can we use batches?
difference between informatica 8.1.1 and 8.6
How can we use mapping variables in informatica? Where do we use them?
Differentiate between Load Manager and DTM?
Separate from an archive server and a powerhouse?
Differentiate between source qualifier and filter transformation?
How to join three sources using joiner? Explain though mapping flow.
What do mean by local and global repository?
What is a node in Informatica?
How can you define user defied event?
What is meant by a domain?