UFN_CONSTITID_MAPFROM_CONSTITUENTNOTEID

Maps a CONSTITUENTNOTEID to a ConstituentID

Return

Return Type
uniqueidentifier

Parameters

Parameter Parameter Type Mode Description
@CONSTITUENTNOTEID uniqueidentifier IN

Definition

Copy


create function dbo.UFN_CONSTITID_MAPFROM_CONSTITUENTNOTEID(@CONSTITUENTNOTEID uniqueidentifier) 
returns uniqueidentifier
as
begin

    DECLARE @ID uniqueidentifier;

    SELECT @ID=CONSTITUENTID from dbo.CONSTITUENTNOTE where ID=@CONSTITUENTNOTEID;

    RETURN @ID;

end