UFN_SITEID_MAPFROM_JOBOCCURRENCEID
Maps a JOBOCCURRENCEID to a SITEID
Return
| Return Type |
|---|
| uniqueidentifier |
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @JOBOCCURRENCEID | uniqueidentifier | IN |
Definition
Copy
create function dbo.UFN_SITEID_MAPFROM_JOBOCCURRENCEID(@JOBOCCURRENCEID uniqueidentifier)
returns uniqueidentifier
as
begin
DECLARE @ID uniqueidentifier;
SELECT @ID=SITEID from dbo.JOBOCCURRENCE where ID=@JOBOCCURRENCEID;
RETURN @ID;
end