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


Please Help Members By Posting Answers For Below Questions

Why update strategy and union transformations are active?

582


What are the challenges you have faced in your Project (DWH- ETL)? Explain with example?

7662


What are the tasks that source qualifier perform?

623


How to create a non-reusable instance of reusable transformations?

668


What is workflow monitor?

586






What are the differences between oltp and olap?

542


suppose in my source flatfile i have 10000 records in that some of master table records missed table records missed then what will u do

1724


What is the function of look up transformation?

641


Explain what are the different types of transformation available in informatica. And what are the mostly used ones among them?

599


What are junk dimensions?

624


What are the various types of transformation?

636


My source is delimited flat file Flat file data is H|Date D1|ravi|bangalore D2|raju|pune T|4 The data will be send to target if the fallowing two conditions satisfied 1.The first row Date column is equal to SYSDATE 2.Last record second port equal to number of records. How to achieve?

5554


Write the advantages of partitioning a session?

741


What is standalone command task?

697


What is option by which we can run all the sessions in a batch simultaneously?

654