This document provides guidance on using queries in The Raiser's Edge to better control mailings. It recommends:
1. Creating inclusion and exclusion queries to define the target audience and remove unwanted records
2. Using query merges to combine inclusion/exclusion queries with segment queries that further define subgroups
3. Creating random samples of records using the "Apply Output Limits" option to split segments into test and control groups for A/B testing of mailings
3. THE WINNING QUERIES
1. Queries for Inclusions, Exclusions, and
Segments
2. Using Query Merges for best results.
3. Random Samples in Query – Creating Tests and
Controls
4. SKILLS
Be able to set up simple queries for direct
response
Use query merge to enhance
Use “select from” functionality
Create test groups and control groups using
query
6. INCLUSIONS AND EXCLUSIONS
Inclusions
Very basic high level
Can be your entire database,
can include people you will
not want to mail
Should have minimal criteria
Exclusions
Specific data
Everyone you most definitely
do not want to mail
Lots of criteria
Potential for errors – be
cautious
7. INCLUSIONS AND EXCLUSIONS
Inclusions
Very basic high level
Can be your entire database,
can include people you will
not want to mail
Should have minimal criteria
Exclusions
Specific data
Everyone you most definitely
do not want to mail
Lots of criteria
Potential for errors – be
cautious
8. EXAMPLE INCLUSION
If you know you are mailing to:
Donors who gave in the last 5
years to certain campaigns
Event participants who came
to a dinner in the last 5 years
Specific Volunteers of type
General or Corporate
Then you might create:
Gift Date >= 2009-10-01
OR
Event Participation Event Is
Not Blank
OR
Volunteer Type Is Not Blank
The specific queries can break this
down even further. We just might
want to limit the scope of the mailing
in general.
9. INCLUSIONS AND EXCLUSIONS
Inclusions
Very basic high level
Can be your entire database,
can include people you will
not want to mail
Should have minimal criteria
Exclusions
Specific data
Everyone you most definitely
do not want to mail
Lots of criteria
Potential for errors – be
cautious
10. EXAMPLE EXCLUSION
If you do not want to mail to:
People who have given in the
last 3 months
People with a solicitor
People who are inactive or
deceased
Attributes/Solicit Codes of
“Do not Mail,” “Do not solicit.”
Here we are very specific. These
will almost always be “ORs,” so
we can just keep adding
Then you might create:
Last gift date >= 2013-07-01
OR
Assigned Solicitor Name Not
Blank
OR
Deceased = YES
OR
Inactive = YES
OR
Solicit Code ONE OF
Do not mail
Do not solicit
11. INCLUSIONS AND EXCLUSIONS
Inclusions
Very basic high level
Can be your entire database,
can include people you will
not want to mail
Should have minimal criteria
Exclusions
Specific data
Everyone you most definitely
do not want to mail
Lots of criteria
Potential for errors – be
cautious
12. ADDING ON THE SEGMENTS
Segments are quick and should be based ONLY
on the specific criteria:
Donors who gave in the last 5 years to certain
campaigns
Gift Date >= 2009-10-1 AND
Campaign ID One of (Foo, Bar)
Specific Volunteers of type General or Corporate
Volunteer Type One of (General, Corporate)
13. ADDING ON THE SEGMENTS
Notice that we did not worry about inclusions and
exclusions – JUST the criteria.
14. THE WINNING QUERIES
1. Queries for Inclusions, Exclusions, and
Segments
2. Using Query Merges for best results.
3. Random Samples in Query – Creating Tests and
Controls
18. THE SUB-MERGE
Sub Merges Remove
One Set of Data from
Another
This is what is left of
our inclusions minus
exclusions
19. THE AND MERGE
The And Merge are the
records that appear in
both data sets.
Your Inc/Exc List AND
Your Segment 1 list, is
who you want to actually
mail in Segment 1
Segment 1
21. RECAP
SUB merge – Inclusions Minus Exclusions
From your new query, AND merges with the
criteria.
We now have 3 segments, which will only pull
records that were in our inclusions, not in our
exclusions, and adhere to the segment criteria.
23. THE LAMENT OF THE MERGE QUERY
Query merges take a lot of
time
Inclusion/Exclusion SUB
Segment 1 AND
Segment 2 AND
Segment 3 AND
Lather, rinse, repeat…
24. “AND” MERGES - DYNAMICALLY
Select Merge
Select Query 1 (Inc minus Exc)
Select Query 2 (Criteria X)
Select Type
Run
Overwrite?
Complete
Run
25. THE DYNAMIC “AND” MERGE
Go to Query Options
Go to Record Processing
Choose a “Select From”
Query of “Inc minus Exc”
26. THE WINNING QUERIES
1. Queries for Inclusions, Exclusions, and
Segments
2. Using Query Merges for best results.
3. Random Samples in Query – Creating Tests and
Controls
35. OUR QUERIES
So we now have Segment Query 1, which selects
records from Inclusions/Exclusions
We have now set to Static and Applied Output
Limits based on a Random Sample.
Let’s *SAVE AS* as a new Query. Let’s call it,
Segment Query 1B
Now, we need to make sure that those in B group
don’t get the A mailing.
36. SEGMENT A
So now we take our Segment Query 1 and SUB
Segment Query 1B. We save this as new query
Segment Query 1A.
Now we have an A and B
A should be approx. 80%
B should be approx. 20%
37. THE WINNING QUERIES
1. Queries for Inclusions, Exclusions, and
Segments
2. Using Query Merges for best results.
3. Random Samples in Query – Creating Tests and
Controls
39. STEP 1: INCLUSION
Create a general Inclusion
Query
Gift Date >= 2009-10-01
OR
Event Participation Event Is
Not Blank
OR
Volunteer Type Is Not Blank
40. STEP 2: EXCLUSION
Create your Exclusion query
Last gift date >= 2013-07-01
OR
Assigned Solicitor Name not
Blank
OR
Deceased = YES
OR
Inactive = YES
OR
Solicit Code ONE OF
Do not mail
Do not solicit
41. STEP 3: SUB YOUR BASE QUERIES
Inclusions
Exclusions
43. STEP 4: SEGMENT QUERIES
Create your Segment Queries
Use “Select From” on your merged Inclusions minus
Exclusions with each Segment Query
44. STEP 5: CREATE “B” GROUP
Now we can create our
random samples by creating
new static queries.
Save as *new* queries so
that the original dynamic
query remains.
45. STEP 6: CREATE “A” GROUP
Now we SUB the B group from the Dynamic Query,
and save as your new A group.
48. ANYTHING ELSE?
De-duplication – are your Segments mutually
exclusive?
Apply Appeals and Packages to these groups
What happens if we need to re-generate?
This is where we would use the Segment tool,
located in Quick Letters…
49. WANT TO KNOW MORE?
Method Works offers online training by individual
course or by organization-wide subscription.
Come visit us at
http://www.methodworksconsulting.com for more
information.
50. WANT TO KNOW MORE?
Method Works in Toronto
Kathleen Pollard, Training Manager
kathleenp@methodworksconsulting.com
416-587-0059
Allison Skahan, Online Strategist
allisons@methodworksconsulting.com
647-669-1552
51. METHOD WORKS CONSULTING
The Raiser’s Edge
The Financial Edge
The Education Edge
NetCommunity/Online
Campus Community
Blackbaud Luminate
(formerly Convio)
Blackbaud Sphere
(formerly Kintera)
Fundraising Systems
Online Engagement
Custom Training
Onsite and On-Call
Support
Training
Business Process
Analysis and
Improvement
Editor's Notes
I am Kirk Schmidt, Director of Professional Services for Method Works.I have been using RE for the last 6 years, the last 3 and a half being on the MWC team.For the past three years I have been a speaker at the Blackbaud Conference for Non-Profits, speaking on the more advanced elements of The Raiser’s Edge.I am also Blackbaud Certified at the Professional Level. Blackbaud will be releasing their Certification program this weekend at BBCon, starting with offering the Associate level of Certification to the public.
Today we are going to talk about queries.I am focusing on how queries are used for Direct Response, and we will go up to creating test queries for being able to create proper test mailings. Before we get there, though, there’s a number of fundamentals we should go over.I’m not going to spend a lot of time in The Raiser’s Edge – this will be very high level.
We want to be able to create your basic queries needed to do mailings, use query merges to pull it together, and then use some of the advanced query functionality to finally create our tests.
We need to start with fundamentals: Inclusions and Exclusions.
So let’s talk high level about inclusions and exclusions.Your queries should be high level for inclusions, and very specific for exclusions. We want to make sure the very specific people who should not be mailed get removed, but that we are not accidentally limiting who will receive when they are not supposed to be excluded.[EXPLAIN ON NEXT SLIDES]
So your inclusions[READ SLIDE]Let’s see an example of what I mean.
Here we’re going to look at 3 criteria segments, and what we could write to “generally” include them, without getting too specific.Donors who gave in the last 5 years to certain campaignsSo let’s ignore the campaigns, but let’s make sure that we’re not pulling donors from 20 years agoEvent participants who came to a dinner in the last 5 yearsWell let’s just bring in event participants. We can deal with the specifics later.Specific volunteers of type General or CorporateIgnore start dates, end dates, and types.Our query now pulls people who either gave in the last 5 years, have ever attended and event, or who have ever volunteered. This *might* be your entire database. This might not. The more data you have in your database, the more this is likely to limit it by some degree.
Now onto Exclusions[Read Slide]
So who might we want to exclude?[Read through]
So just to review:-Inclusions are your high level, very basic criteria-Exclusions are your very specific criteria
Just want to touch briefly on segments.Segments are your super specific inclusions. These are people who are receiving a specific package and will be tracking separately, through an appeal or package.
Big note – we didn’t talk about using the inclusions or exclusions when it came to the segments – we will talk about that soon.It’s about the building blocks of our mailing – let’s create our components, then bring it all together.
So the first part was to talk about Inclusions, Exclusions, and Segments. Next is our query merges.
… where we use our imergeination.I’ll be here all day, folks.
So here we have our queries – We have inclusions, exclusions, and a few segments. But these aren’t mutually exclusive – there will be overlap between these.
So let’s start with Inclusions and Exclusions. We want to make sure Exclusions are removed, so we will use a merge query.Specifically, we sub-merge[Submarine dropping]Using Merge Queries in the Raiser’s Edge, we will cut exclusions from inclusions[Click, allow animation to proceed. Click again, exc is removed.]
A sub merge is a subtraction – a removal of one set of data from another. For any cases where records are in both the inclusions and the exclusions, they will be removed from our inclusions.
Now we can use And Merges. And merged will be the records that exist in BOTH queries – so in our case here, it will be where Segment 1 and our base query intersect.
Since I’m talking about query merges, I will explain the last two merge types quickly.You will likely not use these for mailings, but knowing the other merge types is important. The two are OR and Exclusive OROR will be all records in query 1 and 2XOR will be all the records in query 1 and all the records in query 2, EXCEPT the records that appear in both.
So to recap the – we use a SUB merge to remove exclusions from InclusionsWe use the AND merge to take THAT query and intersect with the segments.
So now that you understand the basics of SUB and AND, let’s go into a nice little trick.
The problem with the merge query is as follows – every time you make a change, you need to remerge the whole set. This is because merges produce static queries.So you can imagine – 1 merge for your inclusions versus exclusions. Then 1 for EACH segment after that.
So every time we redo the merge, we get to go through this process.Would it be nicer if we could just click… Run?
There is a way to create AND merges dynamically, and it’s using Query Options.When you’re in your segment query, you can go to Tools and Query Options. There you will find a tab called, “Record Processing.”Here you can “Select from query,” which is effectively the same as an AND merge. The difference is, this one is dynamic.
We went through Query Merges and how to daisy chain the queries. These fundamental concepts are required for what we really want to talk about – test queries.
So let’s take one of our segments – we don’t care which one right now. So here we have our entire segment.
Now we want to test a portion of it, so we want to pull out this section B for our tests. How would we go about doing this?
So, we are going to need to create a query to pull away from A. A will be the main one, and B will be the secondary.We could build another query with other criteria, but that will not truly give us a random sample.
There is the ability to output rows in the Raiser’s Edge within Record Processing.
In order to make it work, we need to make it a static query.
So now we have the option.The different between the two options-Random sample is going to grab a random subset of the group-Limit to top rows will let you grab the first however many rows based on your sort order.To truly test, you need a random sample – by doing the top number of rows you really don’t have a random sample, so we will select the first optionSo the next question is, how many records do we do?
In the list of queries, the standard columns will show an approximate record count. This is based on the last time the dynamic query was saved.So we can do a random sampling based on that. So, let’s say we were to apply approximately 20%, based on our 99, let’s do a random sample of 20.
So here’s where we are.-Segment Query 1-Output Limits-Save as a new query-Now we need to separate
So now we go back to building Segment A.
So now we’ve covered how Random Samples work.So let’s recap.
Where do we go fro here?-Well, we haven’t de-duplicated groups. We can do this by either writing queries that DEFINITELY will not create duplicates, or we need to run SUB merges.-We need to apply appeals and packages – lots of Global Adds-Long process if we need to re-generate – chances are we have more than 3 segmentsThis is what you need to know to make this work, and you can do everything from here, but there is a little known tool in The Raiser’s Edge that can do a lot of this for us, called Segment.[Training Promo]