Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Tricky SQL question
Thanks to Jurij Modic [jmodic_at_src.si] for the following solution. (Also thanks to everyone else who responded)
SELECT v1.data_type FROM
(SELECT max(v2.keyword) data_type, v2.cnt FROM
(SELECT keyword, -1*COUNT(*) cnt FROM keyword GROUP by keyword ) v2
Nice solution - fast too. :-)
-Richard B. Received on Tue Jan 05 1999 - 18:48:08 CST
![]() |
![]() |