UFN_TARGETGIFTRANGE_GETVALUE

Return

Return Type
smallint

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN

Definition

Copy


create function dbo.UFN_TARGETGIFTRANGE_GETVALUE(@ID uniqueidentifier)
            returns smallint
            with execute as caller
            as begin
                declare @SCORE smallint;

                select 
                    @SCORE = SCORE 
                from 
                    dbo.TARGETGIFTRANGE
                where 
                    ID = @ID;

                return @SCORE;
            end