UFN_CONSTITUENT_GETCONSTITUENCIES_BOARDMEMBER

Returns all board member constituencies for a constituent.

Return

Return Type
table

Parameters

Parameter Parameter Type Mode Description
@CONSTITUENTID uniqueidentifier IN

Definition

Copy


            create function dbo.UFN_CONSTITUENT_GETCONSTITUENCIES_BOARDMEMBER(@CONSTITUENTID uniqueidentifier)
            returns table
            as
            return
            (
                select
                    BOARDMEMBERDATERANGE.ID,
                    BOARDMEMBERDATERANGE.DATEFROM,
                    BOARDMEMBERDATERANGE.DATETO
                from
                    dbo.BOARDMEMBERDATERANGE
                where
                    BOARDMEMBERDATERANGE.CONSTITUENTID = @CONSTITUENTID
            );