UFN_SITEID_MAPFROM_SEGMENTATIONACTIVATEPROCESSID
Maps a Marketing Effort's Activation Process to a Site.
Return
Return Type |
---|
uniqueidentifier |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@SEGMENTATIONACTIVATEPROCESSID | uniqueidentifier | IN |
Definition
Copy
CREATE function dbo.UFN_SITEID_MAPFROM_SEGMENTATIONACTIVATEPROCESSID
(
@SEGMENTATIONACTIVATEPROCESSID uniqueidentifier
)
returns uniqueidentifier
as
begin
declare @SITEID uniqueidentifier;
select @SITEID = [MKTSEGMENTATION].[SITEID]
from dbo.[MKTSEGMENTATION]
inner join dbo.[MKTSEGMENTATIONACTIVATEPROCESS] on [MKTSEGMENTATIONACTIVATEPROCESS].[SEGMENTATIONID] = [MKTSEGMENTATION].[ID]
where [MKTSEGMENTATIONACTIVATEPROCESS].[ID] = @SEGMENTATIONACTIVATEPROCESSID;
return @SITEID;
end