UFN_MEMBERSHIPPROGRAMRENEWAL_INTERVALCODE_GETID
Return
Return Type |
---|
tinyint |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@Description | nvarchar(14) | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 3/19/2013 1:11:27 AM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=3.0.504.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_MEMBERSHIPPROGRAMRENEWAL_INTERVALCODE_GETID(@Description nvarchar(14))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin
return case @Description
when '1 month' then 0
when '2 months' then 1
when '3 months' then 2
when '4 months' then 3
when '5 months' then 4
when '6 months' then 5
when '7 months' then 6
when '8 months' then 7
when '9 months' then 8
when '10 months' then 9
when '11 months' then 10
when '12 months' then 11
when 'Rest of window' then 12
else -1
end
end