select min(component_id) as component_id from bt_components where project_id = :package_id select acs_object_id_seq.nextval as bug_id from dual