I'm attempting to access the 3rd row from the following query:
SELECT *
FROM (SELECT
OFFENSEDESC,
COUNT(*) AS num
FROM
CRIMEPROFILE
GROUP BY
OFFENSEDESC
ORDER BY num DESC) o
WHERE rownum = 3
However, it returns no rows, I am uncertain as to why that is, any help is appreciated. NOTE: ORACLE SQL