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