UFN_EVENTRESOURCE_GETRESOURCES
Returns the resources for an event
Return
Return Type |
---|
table |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@EVENTID | uniqueidentifier | IN |
Definition
Copy
CREATE function dbo.UFN_EVENTRESOURCE_GETRESOURCES
(
@EVENTID uniqueidentifier
)
returns table
as return
select EVENTRESOURCE.ID AS ID,
EVENTRESOURCE.RESOURCEID,
EVENTRESOURCE.QUANTITYNEEDED,
RESOURCE.ISPERTICKETITEM,
EVENTRESOURCE.PERTICKETQUANTITY
from EVENTRESOURCE
inner join RESOURCE on EVENTRESOURCE.RESOURCEID = RESOURCE.ID
where EVENTRESOURCE.EVENTID = @EVENTID