CREATE OR REPLACE FUNCTION office.get_cost_center_id_by_cost_center_code(text) RETURNS integer LANGUAGE plpgsql STABLE AS $function$ BEGIN RETURN cost_center_id FROM office.cost_centers WHERE cost_center_code=$1; END $function$