select name, action_id from as_actions
select max(am.order_by) from as_action_map am,as_inter_item_checks c
where c.inter_item_check_id=am.inter_item_check_id and
c.section_id_from = :section_id and am.action_perform=:action_perform
insert into as_action_map
(inter_item_check_id,action_id,order_by,user_message,action_perform)
values (:inter_item_check_id,:action_id,:order,:user_message,:action_perform)
select count(inter_item_check_id) from as_action_map where inter_item_check_id=:inter_item_check_id
select * from as_action_map where inter_item_check_id=:inter_item_check_id
select action_p from as_inter_item_checks where inter_item_check_id=:inter_item_check_id
select action_perform from as_action_map where inter_item_check_id=:inter_item_check_id
update as_action_map set action_perform=:action_perform, action_id=:action_id, user_message=:user_message where inter_item_check_id=:inter_item_check_id
update as_action_map set action_perform=:action_perform, action_id=:action_id, user_message=:user_message,order_by=:order where inter_item_check_id=:inter_item_check_id