V_QUERY_TEAMGOALS
Query view used for household goals.
Fields
Field | Field Type | Null | Description |
---|---|---|---|
ID | uniqueidentifier | System record ID | |
EVENTPRICEID | uniqueidentifier | Event price id | |
MINFUNDRAISING | money | Fundraising total amount | |
ISNOTLOWERFUNDRAISING | bit | Cannot be lower than fundraising total amount | |
TEAMMEMBERS | int | Number of team members | |
ISNOTLOWERTEAMMEMBERS | bit | Cannot be lower than number of team members | |
TEAMMEMBERRETENTION | decimal(9, 4) | Percentage of team members to retain | |
ISNOTLOWERTEAMMEMBERRETENTION | bit | Cannot be lower than percentage of team members to retain | |
COMMUNICATIONS | int | Number of communications to send | |
ISNOTLOWERCOMMUNICATION | bit | Cannot be lower than number of communications to send | |
RECRUITEMENT | int | Number of participants to recruit | |
ISNOTLOWERRECRUITEMENT | bit | Cannot be lower than number of participants to recruit | |
VOLUNTEERRECRUITEMENT | int | Number of volunteers to recruit | |
UNIT | int | Number of other goal | |
ADDEDBY_APPLICATION | nvarchar(200) | yes | Added by application |
ADDEDBY_USERNAME | nvarchar(128) | yes | Added by user name |
CHANGEDBY_APPLICATION | nvarchar(200) | yes | Changed by application |
CHANGEDBY_USERNAME | nvarchar(128) | yes | Changed by user name |
DATEADDED | datetime | Date added | |
DATECHANGED | datetime | Date changed | |
TSLONG | bigint | yes | Timestamp value |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 11/30/2010 11:19:43 PM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=2.8.2022.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE VIEW dbo.V_QUERY_TEAMGOALS AS
select RTG.ID
,RTG.EVENTPRICEID
,RTG.MINFUNDRAISING --Fundraising total amount
,RTG.ISNOTLOWERFUNDRAISING --Cannot be lower than fundraising total amount
,RTG.TEAMMEMBERS --Number of team members
,RTG.ISNOTLOWERTEAMMEMBERS --Cannot be lower than number of team members
,RTG.TEAMMEMBERRETENTION --Percentage of team members to retain
,RTG.ISNOTLOWERTEAMMEMBERRETENTION --Cannot be lower than percentage of team members to retain
,RTG.COMMUNICATIONS --Number of communications to send
,RTG.ISNOTLOWERCOMMUNICATION --Cannot be lower than number of communications to send
,RTG.RECRUITEMENT --Number of participants to recruit
,RTG.ISNOTLOWERRECRUITEMENT --Cannot be lower than number of participants to recruit
,RTG.VOLUNTEERRECRUITEMENT --Number of volunteers to recruit
,RTG.UNIT --Number of other goal
--System Field
,ADDEDBY.APPLICATIONNAME as [ADDEDBY_APPLICATION]
,ADDEDBY.USERNAME as [ADDEDBY_USERNAME]
,CHANGEDBY.APPLICATIONNAME as [CHANGEDBY_APPLICATION]
,CHANGEDBY.USERNAME as [CHANGEDBY_USERNAME]
,RTG.DATEADDED
,RTG.DATECHANGED
,RTG.TSLONG
FROM dbo.FAFREGISTRATIONTYPEGOAL RTG
LEFT JOIN dbo.CHANGEAGENT AS [ADDEDBY] on [ADDEDBY].ID = RTG.ADDEDBYID
LEFT JOIN dbo.CHANGEAGENT AS [CHANGEDBY] on [CHANGEDBY].ID = RTG.CHANGEDBYID
where RTG.REGTYPEGOALCODE=1