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
How we can create indexes after completing the loan process?
What is the difference between Active and Passive transformation?
What's the layout of parameter file (what does a parameter file contain?)?
what are factless facts? And in which scenario will you use such kinds of fact tables.
What are the new features of informatica 9.x at the developer level?
how tokens will generate?
What is incremental aggregation?
How to implement security measures using repository manager?
How is union transformation utilized?
How to partition the Session?
What does command task mean?
what is size of u r database?
What are the challenges you have faced in your Project (DWH- ETL)? Explain with example?
What are the types of caches in lookup? Explain them.
Enlist the tasks for which source qualifier transformation is used.