UFN_CONSTITUENT_GETSUFFIX2_TVF

Retrieve Suffix 2 for a given constituent

Return

Return Type
table

Parameters

Parameter Parameter Type Mode Description
@CONSTITUENTID uniqueidentifier IN

Definition

Copy


CREATE function dbo.UFN_CONSTITUENT_GETSUFFIX2_TVF(@CONSTITUENTID uniqueidentifier)
returns table
as 
return
(
    select
        SUFFIXCODE.DESCRIPTION as VALUE
    from dbo.CONSTITUENT with(nolock)
        inner join dbo.SUFFIXCODE with(nolock) on CONSTITUENT.SUFFIX2CODEID = SUFFIXCODE.ID
    where
        CONSTITUENT.ID = @CONSTITUENTID
)