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