SELECT ID,CLASSTYPE,KEY,VALUE 
FROM            
	(SELECT A.*,ROWNUM CNT FROM(SELECT ID,CLASSTYPE,KEY,VALUE           
		FROM F_XXX          
		WHERE CLASSTYPE = ?          
		ORDER BY ID DESC) A                    
WHERE ROWNUM < ?          
)          
WHERE CNT > ?               
 	
---------------------------
SELECT ID, CLASSTYPE, KEY, VALUE
FROM (
	SELECT A.*, ROWNUM AS CNT
	FROM (
		SELECT ID, CLASSTYPE, KEY, VALUE
		FROM F_XXX
		WHERE CLASSTYPE = ?
		ORDER BY ID DESC
	) A
	WHERE ROWNUM < ?
)
WHERE CNT > ?