| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> Got the Solution
Hi All,
One of my freind helped me. I got this solution though it is little lengthy.
SELECT IN_TABLE.A as A , IN_TABLE.B AS B , C AS VAL_C , MAX_C as COUNT
FROM
(
SELECT A, B, C , Count(C) AS Count_C
FROM temp
GROUP BY A, B , C
SELECT A,B, MAX( Count_C) as MAX_C FROM
(
SELECT A, B, C , Count(C) AS Count_C
FROM temp
GROUP BY A, B , C
)GROUP BY A, B
Regards
![]() |
![]() |