Annotation: office.get_store_name_by_store_id

CREATE OR REPLACE FUNCTION office.get_store_name_by_store_id(integer)
RETURNS text

Information: office.get_store_name_by_store_id

Schema office
Function Name get_store_name_by_store_id
Arguments integer
Owner postgres
Result Type text
Description

Implementation: office.get_store_name_by_store_id

CREATE OR REPLACE FUNCTION office.get_store_name_by_store_id(integer)
 RETURNS text
 LANGUAGE plpgsql
AS $function$
BEGIN
    RETURN
    (
        SELECT store_name
        FROM office.stores
        WHERE store_id=$1
    );
END
$function$