UFN_SPONSORSHIPOPPORTUNITIES_FOR_GROUP
Gets all the sponsorship opportunities for a given opportunity group.
Return
Return Type |
---|
int |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN |
Definition
Copy
create function dbo.UFN_SPONSORSHIPOPPORTUNITIES_FOR_GROUP(@ID uniqueidentifier)
returns int
with execute as caller
as begin
declare @COUNT int = 0;
select @COUNT = count(*)
from dbo.SPONSORSHIPOPPORTUNITY
where SPONSORSHIPOPPORTUNITYGROUPID = @ID
return @COUNT
end