Introduction to Queries, Outputs, and Scheduling Introduction to Queries, Outputs and Scheduling
Introduction to Queries, Outputs, and Scheduling
Introduction to Queries, Outputs and Scheduling
Page #2 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Goals for the Course
Overview of Query, Output, and Scheduling Terminology
Learning Query, Output, and Scheduling Concepts
Page #3 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Query
The Query selects the records you want to work with.
Page #4 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Outputs
The Output provides the information you want from the records your query
selected.
Page #5 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Three Output Options
Output File
• Creates a file on the database server with the fields you choose
Report
• Formats and totals your data
Update Procedure
• Updates records in database
Page #6 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Scheduling
The Schedule Record is where you define which queries and outputs run together
and when.
Page #7 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Steps for a Task
Plan
Run
Schedule
Test
OutputQuery
Page #8 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Query Type Hierarchy
Query Type defines the type of records returned.
Benefits
Transactions Interactions Planned
Giving
Tributes
Names
Accounts
Page #9 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Other Query Types
Sources
Used to select source codes with certain criteria to view marketing and response
information
Example: Select all source codes for AM activity with a particular cost/contact
Page #10 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Other Query Types
Planned Giving
Used to select information about planned giving records
Example: Select the principal amounts, next payment date & amount for all
active annuities
Page #11 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Additional Query Type Information
Names
Name ID 0 functionality
Transactions & Benefits
Restricted to active transactions or benefits
Choice of giver or acknowledged (transactions)
Choice of giver or recipient (benefits)
Page #12 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Exercise: Query Type
Consider the account of John and Mary Donor. How many records are pulled for
each of the following query types if the criteria payment amount is greater than or
equal to $1000?
Accounts?
Names?
Transactions?
Benefits?
Planned Giving?
Page #13 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Query & Output Types
Query Output
Accounts Accounts
Names Accounts, Names
Transactions Accounts, Names, Transactions
Benefits Accounts, Names, Transactions,
Benefits
Page #14 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Query & Output Types (cont.)
Query Output
Interactions Accounts, Names, Interactions
Planned Giving Accounts, Names, Planned Giving
Sources Sources
Tributes Accounts, Tributes
Page #15 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Team Approach File Layout
Document that explains the structure of the TA database
Used in writing queries to determine in which columns and tables TA stores
information
Page #16 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Defining Query Criteria
Query criteria are phrases that set the conditions for your query.
State = MA AND
Account Type = IN
(Individual accounts in Massachusetts)
Page #17 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Query Criteria Components
TA Field Name
Example: State
Operator
Example: =
Value(s)
Example: MA
Connecting Criteria
Example: AND
Page #18 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Connecting Criteria
Provide the join or “conjunction” for the query criteria
Team Approach connectors
And
Or
+ Not
Page #19 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
AND (Intersection)
Interest in
Walking
Sporting Event
Interest
Has interest in walking AND has interest in sporting events.
Page #20 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
OR (Union)
Interest in
Walking
Sporting Event
Interest
Has interest in walking OR has interest in sporting events.
Page #21 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
+Not
Interest in
Walking
Sporting Event
Interest
Has interest in walking, PLUS does NOT have interest in sporting events.
Page #22 © 2008 Blackbaud
Understanding Marketing Codes in Team Approach
This presentation contains confidential and proprietary information. It may not be used, distributed, copied, or printed without the expressed permission of the author.
Output Components
Output File Definition Record
Fields to output
Formatting options
Sorting options
Reports
Parameters
Update Procedures
Parameters