Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL dude
Not sure if I got you right. If you want the value that is present in
your table more than once then you can use something like this:
SELECT spalte FROM test_01 GROUP BY spalte
SELECT x.spalte
FROM
(
SELECT spalte, COUNT(spalte) anz FROM test_01 GROUP BY spalte ORDER BY COUNT(spalte) DESC ) x WHERE ROWNUM = 1
Regards,
Jörg Received on Fri Apr 07 2006 - 08:00:27 CDT
![]() |
![]() |