UFN_CONSTITID_MAPFROM_CONSTITUENCEYID
Maps a user-defined ConstituencyID to a ConstituentID
Return
Return Type |
---|
uniqueidentifier |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@CONSTITUENCYID | uniqueidentifier | IN |
Definition
Copy
create function dbo.UFN_CONSTITID_MAPFROM_CONSTITUENCEYID(@CONSTITUENCYID uniqueidentifier)
returns uniqueidentifier
as
begin
DECLARE @ID uniqueidentifier;
SELECT @ID=CONSTITUENTID from dbo.CONSTITUENCY where ID=@CONSTITUENCYID;
RETURN @ID;
end