UFN_REGISTRANT_ISGUEST
Checks if the registrant is not a guest of a registrant.
Return
Return Type |
---|
bit |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@REGISTRANTID | uniqueidentifier | IN |
Definition
Copy
create function dbo.UFN_REGISTRANT_ISGUEST
(
@REGISTRANTID uniqueidentifier = null
)
returns bit with execute as caller
as
begin
if exists(select ID from dbo.REGISTRANT where ID = @REGISTRANTID and GUESTOFREGISTRANTID is not null)
return 1
return 0
end