CREATE OR REPLACE FUNCTION core.get_shipper_name_by_shipper_id(integer) RETURNS text LANGUAGE plpgsql AS $function$ BEGIN RETURN ( SELECT company_name FROM core.shippers WHERE shipper_id=$1 ); END $function$