Notices


Reply
 
LinkBack Thread Tools Display Modes

Old 03-10-2008, 02:10 PM   #1 (permalink)
Senior Member

Join Date: Jul 2006
Location: New York
Posts: 138
Rep Power: 3 Mica is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Blackbaud Analytics/Researcher's Edge (BBA/TRE)

Hypothetical query

Constituent:
Two gifts:
4k on 9/27/04
2k on 10/7/05

Constituent Query:
Gift amount >= 4k
AND Gift date between 10/6/05 and 10/8/05

Should it pick up said constituent?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-10-2008, 02:22 PM   #2 (permalink)
I'll Get There Someday

Anne Marie's Avatar

Join Date: May 2006
Posts: 422
Rep Power: 3 Anne Marie is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)

Yes, I believe it will include that person because both conditions apply.

Try reversing the order - that may work. Sometimes it makes a difference if you specify the time period before the amount.

Of course - I am assuming that you do not want to include the person?? Perhaps I've misinterpreted your Q.
__________________
Anne Marie

I was born with nothing, and I still have most of it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-10-2008, 02:27 PM   #3 (permalink)
Senior Member

Join Date: Jul 2006
Location: New York
Posts: 138
Rep Power: 3 Mica is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Blackbaud Analytics/Researcher's Edge (BBA/TRE)

See, I thought it would, too.

Because it fits both criteria... but not together.

But it doesn't pick this person up, and I'm baffled as to why.

If I remove one or the other it does, but not with both.

Reversing the conditions doesn't change it.

Quote:
Originally Posted by Anne Marie View Post
Yes, I believe it will include that person because both conditions apply.

Try reversing the order - that may work. Sometimes it makes a difference if you specify the time period before the amount.

Of course - I am assuming that you do not want to include the person?? Perhaps I've misinterpreted your Q.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-10-2008, 02:37 PM   #4 (permalink)
Senior Member

Nina Williams's Avatar

Join Date: Jun 2007
Location: Cleveland, OH
Posts: 121
Rep Power: 2 Nina Williams is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)

Constituent:
Two gifts:
4k on 9/27/04
2k on 10/7/05

Constituent Query:
Gift amount >= 4k
AND Gift date between 10/6/05 and 10/8/05

Your date parameters do not include the day the $4K gift was made -- only the date of the second, smaller gift.
__________________
Nina T. Williams
The Cleveland Institute of Art
Making Art Work
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-10-2008, 02:38 PM   #5 (permalink)
I'll Get There Someday

Anne Marie's Avatar

Join Date: May 2006
Posts: 422
Rep Power: 3 Anne Marie is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)

Okay, I thought you wanted to exclude, not include. I think it has to do with operator AND and whether both conditions must be met.

If you try operator OR, that would pick up the constituent, wouldn't it?
__________________
Anne Marie

I was born with nothing, and I still have most of it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-10-2008, 02:38 PM   #6 (permalink)
Senior Member

Join Date: Jul 2006
Location: New York
Posts: 138
Rep Power: 3 Mica is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Blackbaud Analytics/Researcher's Edge (BBA/TRE)

But why are the two related?

He has a gift over 4k, and he has a gift in between those two dates.

Much like say...

Gift amount > 4k
AND name = mica

The two have nothing to do with each other... if the guy gave over 4k and is named Mica, it's a hit.

Quote:
Originally Posted by Nina Williams View Post
Constituent:
Two gifts:
4k on 9/27/04
2k on 10/7/05

Constituent Query:
Gift amount >= 4k
AND Gift date between 10/6/05 and 10/8/05

Your date parameters do not include the day the $4K gift was made -- only the date of the second, smaller gift.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-10-2008, 02:46 PM   #7 (permalink)
Development Database Specialist

Join Date: Mar 2008
Posts: 10
Rep Power: 0 databasediva is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Patron's Edge (PE)

Your constituent will not show up in the report because you have limited the date range to a time period when this person did not make a gift greater than 4k and since it is an "AND" statement and not an "OR" statement, nothing exists that would pull this person into your report.

HO\ope this helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-10-2008, 02:48 PM   #8 (permalink)
Senior Member

Join Date: Jul 2006
Location: New York
Posts: 138
Rep Power: 3 Mica is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Blackbaud Analytics/Researcher's Edge (BBA/TRE)

I understand that part... but why do those two relate to each other, but not my other example...



Quote:
Originally Posted by dabatasediva View Post
Your constituent will not show up in the report because you have limited the date range to a time period when this person did not make a gift greater than 4k and since it is an "AND" statement and not an "OR" statement, nothing exists that would pull this person into your report.

HOope this helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-10-2008, 02:50 PM   #9 (permalink)
ah one, and ah two

Michael Sherman's Avatar

Join Date: May 2006
Location: Sarasota, FL
Posts: 431
Rep Power: 3 Michael Sherman is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Financial Edge (FE)
- Patron's Edge (PE)
- Blackbaud Analytics/Researcher's Edge (BBA/TRE)

Quote:
Originally Posted by Nina Williams View Post
Constituent:
Two gifts:
4k on 9/27/04
2k on 10/7/05

Constituent Query:
Gift amount >= 4k
AND Gift date between 10/6/05 and 10/8/05

Your date parameters do not include the day the $4K gift was made -- only the date of the second, smaller gift.
Quote:
Originally Posted by Anne Marie View Post
Okay, I thought you wanted to exclude, not include. I think it has to do with operator AND and whether both conditions must be met.

If you try operator OR, that would pick up the constituent, wouldn't it?
This should be the case with a gift query not a constituent query unless you enclose the critera in parenthesis.

Mica is correct and I'm sure that Blackbaud will file this bug as a suggestion but probably will not implement it.
__________________
Michael J. Sherman
Database Administrator
Sarasota Orchestra (name change 9/3/08)
The new Florida West Coast Symphony

msherman "at" SarasotaOrchestra "dot" org

Last edited by Michael Sherman; 03-10-2008 at 02:53 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-10-2008, 02:58 PM   #10 (permalink)
Development Database Specialist

Join Date: Mar 2008
Posts: 10
Rep Power: 0 databasediva is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Patron's Edge (PE)

What other question?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-10-2008, 03:02 PM   #11 (permalink)
Senior Member

Join Date: Jul 2006
Location: New York
Posts: 138
Rep Power: 3 Mica is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Blackbaud Analytics/Researcher's Edge (BBA/TRE)

Quote:
Originally Posted by dabatasediva View Post
What other question?

"But why are the two related?

He has a gift over 4k, and he has a gift in between those two dates.

Much like say...

Gift amount > 4k
AND name = mica

The two have nothing to do with each other... if the guy gave over 4k and is named Mica, it's a hit."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-10-2008, 03:07 PM   #12 (permalink)
Development Database Specialist

Join Date: Mar 2008
Posts: 10
Rep Power: 0 databasediva is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Patron's Edge (PE)

It may seem that easy, but you have to think like the computer. It considers your criteria to be one sentence, one complete thought. When you use "AND" as the connector, the system is looking for gifts with a certain date range that are over 4k. The gift in question did not happen during that period, so it doesn't show up.

If you want it to show up on a report, you would have to change the "AND" to "OR". That way it looks at the two pieces of information separately.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-10-2008, 03:11 PM   #13 (permalink)
Senior Member

Join Date: Jul 2006
Location: New York
Posts: 138
Rep Power: 3 Mica is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Blackbaud Analytics/Researcher's Edge (BBA/TRE)

I see what you're saying, but I disagree.

In a constituent query, it is basing everything off of the constituent record as a whole.

In a gift query, it is basing it off of the record of the gift.

The computer should think of it as:
Criteria1: Yes or no? If yes, continue... If no, return false.
Criteria2: Yes or no? If yes, continue... If no, return false.

Quote:
Originally Posted by dabatasediva View Post
It may seem that easy, but you have to think like the computer. It considers your criteria to be one sentence, one complete thought. When you use "AND" as the connector, the system is looking for gifts with a certain date range that are over 4k. The gift in question did not happen during that period, so it doesn't show up.

If you want it to show up on a report, you would have to change the "AND" to "OR". That way it looks at the two pieces of information separately.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-10-2008, 03:22 PM   #14 (permalink)
my feet hurt.

Melissa Siobhan's Avatar

Join Date: May 2006
Location: Connecticut
Posts: 1,460
Rep Power: 4 Melissa Siobhan is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)

I questioned this myself a long time ago Mica and when you pull two fields from the gifts section in query the two fields you are querying about are from the same gift.

You can not pull two fields from the gifts section and ask about two different gifts - just not possible. To do that you need to to 2 queries and merge them.
__________________
Melissa S. Graves

Director of Development Services
The Village for Families and Children
www.villageforchildren.org



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-10-2008, 03:30 PM   #15 (permalink)
Senior Member

Join Date: Jul 2006
Location: New York
Posts: 138
Rep Power: 3 Mica is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Blackbaud Analytics/Researcher's Edge (BBA/TRE)

Well that is silly.

Quote:
Originally Posted by Melissa Siobhan View Post
I questioned this myself a long time ago Mica and when you pull two fields from the gifts section in query the two fields you are querying about are from the same gift.

You can not pull two fields from the gifts section and ask about two different gifts - just not possible. To do that you need to to 2 queries and merge them.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-10-2008, 04:07 PM   #16 (permalink)
Crystal Reports Guru

DrewAllen's Avatar

Join Date: May 2006
Location: Philadelphia, PA
Posts: 1,168
Rep Power: 4 DrewAllen is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Information Edge (TIE)
- API/VBA

Quote:
Originally Posted by Mica View Post
Well that is silly.
That's a matter of opinion. I think that the approach used is quite logical. You're much more likely to want the criteria to apply to the same gift rather than to different gifts even from a constituent query. The only difference between a constituent query and a gift query is the System Record ID that is returned by the query. In one case it is the constituent System Record ID; in the other, it is the gift System Record ID. As long as the fields are from the same "table" they should refer to the same record.

There are some cases where records are stored in the same actual table, but RE interprets them as separate logical tables. The prime case of this is any lookup table. All the values are stored in the same table, but RE treats them as separate.

As Melissa suggested, you can merge queries together to get what you are after. Another possibility is to use two gift summaries. If you count the number of gifts >= $4K and then in a separate summary count the number of gifts between your dates and select where both of them are greater than zero, it will pull in your record.

Drew
__________________
J. Drew Allen
Children's Hospital of Philadelphia

Crystal Reports and SQL Server Consultant

It is better to live your destiny imperfectly than to live an imitation of somebody else's life with perfection.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-11-2008, 07:07 AM   #17 (permalink)
Nora