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