UFN_ID_MAPFROM_OTHERASSETID
Maps a OTHERASSETID to a ID
Return
Return Type |
---|
uniqueidentifier |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@OTHERASSETID | uniqueidentifier | IN |
Definition
Copy
create function dbo.UFN_ID_MAPFROM_OTHERASSETID(@OTHERASSETID uniqueidentifier)
returns uniqueidentifier
as
begin
declare @ID uniqueidentifier;
select @ID = WEALTH.ID from dbo.WPOTHERASSET
inner join dbo.WEALTH on WEALTH.ID = WPOTHERASSET.WEALTHID
where WPOTHERASSET.ID = @OTHERASSETID;
return @ID;
end