UFN_ID_MAPFROM_WPPOLITICALDONATIONID

Maps a WPPOLITICALDONATIONID to a ID

Return

Return Type
uniqueidentifier

Parameters

Parameter Parameter Type Mode Description
@WPPOLITICALDONATIONID uniqueidentifier IN

Definition

Copy


            create function dbo.UFN_ID_MAPFROM_WPPOLITICALDONATIONID(@WPPOLITICALDONATIONID uniqueidentifier) 
            returns uniqueidentifier
            as
            begin
                declare @ID uniqueidentifier;

                select @ID = WEALTH.ID from dbo.WPPOLITICALDONATION
                inner join dbo.WEALTH on WEALTH.ID = WPPOLITICALDONATION.WEALTHID
                where WPPOLITICALDONATION.ID = @WPPOLITICALDONATIONID;

                return @ID;
            end