Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: QUERY HELP NEEDED
PROB SOLVED. with some minor changes in David's query i m able to
solve the problem. This is the query i m using
select * from
(SELECT COUNT(TABLE1.COL1) AS Expr1, TABLE2.COL2
FROM TABLE1,TABLE2 where TABLE1.COL1 = TABLE2.COL1
GROUP BY TABLE2.COL2)
where expr1 = ( SELECT TOP 1 COUNT(TABLE1.COL1) As Expr1
FROM TABLE1,TABLE2 where TABLE1.COL1 = TABLE2.COL1
GROUP BY TABLE2.COL2
ORDER BY Expr1 desc);
also tell me if there are any other alternatives i can use. and Thanku all of u very much. Received on Mon Mar 12 2007 - 00:57:16 CDT
![]() |
![]() |