UFN_REVENUELIFECYCLEHISTORY_DONORSTATECODE_GETDESCRIPTION
Return
Return Type |
---|
nvarchar(21) |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | tinyint | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 11/30/2010 11:16:30 PM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=2.8.2022.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_REVENUELIFECYCLEHISTORY_DONORSTATECODE_GETDESCRIPTION(@ID tinyint)
RETURNS nvarchar(21) WITH EXECUTE AS CALLER
AS
begin
return case @ID
when 0 then 'New'
when 1 then 'Recapture'
when 2 then 'Upgrade'
when 3 then 'Same'
when 4 then 'Downgrade'
when 5 then 'Lapsed new donor'
when 6 then 'Lapsed repeat donor'
when 7 then 'Lapsed multiple years'
when 8 then 'Non-donor'
end
end