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 / ruchi
SELECT ID,COUNT(*) FROM TABLE1
GROUP BY ID
HAVING COUNT(*)>1
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Whats the difference between informatica powercenter server, repositoryserver and repository?
How can we store previous session logs?
How to create a non-reusable instance of reusable transformations?
Explain the tuning lookup transformation - informatica
tell me about your project functionality
server hot-ws270 is connect to Repository B. What does it mean?
What is a pre-defined event and user-defined event?
What do you mean incremental aggregation?
Define mapping and session?
How do you load first and last records into target table?
Design time, run time. If you don't create parameter what will happen
what is the difference between informatica6.1 and infomatica7.1
How to start a workflow using pmcmd command?
How to do the error handling of if ur source is flatfiles?
What is a stored procedure transformation?