oracle8.1.6 select * from ( select version_id from apm_package_version_info where installed_p = 't' and enabled_p = 't' and package_key = :about_package_key ) where rownum = 1