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 / akash khanwalkar

This one is without using HAVING clause:

SELECT TEMP.ID, TEMP.ID_COUNT FROM
(
SELECT ID AS ID, COUNT(ID) AS ID_COUNT FROM TEMP_ID_TABLE
GROUP BY ID
) TEMP
WHERE TEMP.ID_COUNT > 1;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dimensional table? Explain the different dimensions.

651


What is workflow monitor?

590


explan ur project architecture?

1588


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

671


How to update a particular record in target with out running whole workflow?

1152






Hi Everybody, I have one fixed width file as source and 4 oracle tables (relational) as target. What are the Unit test cases i need to implement ? 1.Using TextPad software i tested postion of the field 2.As per specification i tested like whether it is correctly mapped or not? Is there any other test case do i need to implement. If possible can any one give me the test cases Advance Thanks

1528


in reporting we add some new objects,how we get the count of the newly added objects to the report

1745


where to store informatica rejected data?

672


what kind of issue you will get in environment? (we ll call help desk to raise ticket rite?

1617


Explain the pipeline partition with real time example?

649


What are the differences between joiner transformation and source qualifier transformation?

620


Briefly define reusable transformation?

622


hi real timers . iam waiting for ur reply regarding ETL TESTING

1802


Why update strategy and union transformations are active?

589


What is Session and Batches?

660