UFN_COMBINATION_HASCONSTITUENCY

Verifies if the combination has a constituency constraint.

Return

Return Type
bit

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN

Definition

Copy


      CREATE function dbo.UFN_COMBINATION_HASCONSTITUENCY(@ID uniqueidentifier)
      returns bit
            with execute as caller
            as begin

              if exists ( select COMBINATIONCONSTITUENCY.ID
                        from dbo.COMBINATIONCONSTITUENCY
                        where COMBINATIONCONSTITUENCY.CONSTITUENCYSYSTEMNAMEID = @ID 
                  )
                return 1;

              return 0;

      end