Duplicate Rows in Constituent Query
Hello everyone, I am trying to run a basic constituent query but I keep getting duplicate rows. Here is the criteria:
and here is the output:
When I run the query, the results have multiple rows for each constituent, even though the information in them is the same (i.e. same name address, codes, gift date, addresses, etc.). How can I get this down to one row per constituent? Forgive me if this is basic stuff, I am new to RE.
Answers
-
The duplicates occur because you have one to many fields in the criteria (a donor may have the gift constituency you specified on more than one gift). Until the new Export function is operational in NXT/web view, you best bet to avoid the duplicates is to run the query through an Export in the Export module in database view. You can build an export with the output fields you've specified and it will have only one instance of each donor.
8 -
Tatyana is correct. But keep in mind the more information you put in the output field, the more likely you will get duplicates. You are best to keep just the name in the output field and you the export function in Database View. Query is just meant to gather the info as opposed to reporting it.
5 -
As usual, @Tatyana Leifman is right on the money. @Rachael Haffey, I think this would be better run as a gift query than a constituent query, as the fields you are looking for are primarily gift based. You may have better luck there. If you look at the fields you're pulling you should be able to determine which field is a one-to-many field for the query.
3 -
I will give that a try, thank you!
0 -
Query is powerful and can be used as exporting tool once you understant the underlying reasoning behind query, and if you are the database person for your org, you will benefit from getting better understand of Query and why duplicates exists. You can see this post where I gave a pretty long response around this topic.
I want to dispel a myth here, the more output field, the more liekly you will get dup. This is not true.
ONE-2-MANY relationship field in the Filter, Output, or Sort tab of Query will give you duplicates. Example:
Constituent Query:
- Filter
- Preferred Country = United States
- Output
- All bio: Constituent ID, Title, First Name, Last Name, Spouse First Name, Spouse Last Name, Gender, Martial Status
- All Preferred Address info: Preferred address lines, Preferred City, Preferred State, Preferred Zip, Preferred Country
- Summary Data: summary of gift with subfilter for giving in 2022, 2023, 2024, 2025, etc
- Sort
- summary of gift with subfilter for lifetime giving
This would not result in any duplicate rows in the constituent query as all the field used in Filter, Output, and Sort tab are ONE-2-ONE with a constituent (a single constituent can only have ONE of such field)
The moment you add Constituent Code to filter, output, or sort tab, you will get duplicate, b/c a single constituent CAN have more than ONE constituent code.
So back to your original query's dup, like Tatyana said, Gift Constituency is ONE-2-MANY on a constituent (ONE constituent can have more than one gift.
Dariel's suggestion will work if your intent is more a gift query, howver, if you still want a constituent query, you can do this:
Constituent Query:
- Filter
- Summary of Gift Amount (or # of gift works too) > 0
- subfilter = gift constituency of Sunbeam - Sustainer
- OR Summary of Gift Amount > 0
- subfilter = gift constituency of Sunbeam - Active
- Summary of Gift Amount (or # of gift works too) > 0
- Output
- from the LEFT panel with all the field, first section = "Query" section, you can select the 2 summary of gift amount field you used in the Filter, and output that
- all the other output you have (do not output Gift Constituency)
0 - Filter
Categories
- All Categories
- New K-12 Community Home (TEST)
- New Higher Education Home Page (Test)
- New Impact Edge Community TEST
- New YourCause Community TEST
- New SKY Community TEST
- New Grantmaking TEST Community
- New Altru Test Community
- New bbcon Community - TEST
- 12 Blackbaud Agents for Good™
- New Raiser's Edge NXT Community
- 8 Blackbaud Community Help
- 222 bbcon®
- 1.4K Blackbaud Altru®
- 410 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.2K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 16 donorCentrics®
- 361 Blackbaud eTapestry®
- 2.7K Blackbaud Financial Edge NXT®
- 687 Blackbaud Grantmaking™
- 604 Blackbaud Education Management Solutions for Higher Education
- 3.3K Blackbaud Education Management Solutions for K-12 Schools
- 954 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 85 JustGiving® from Blackbaud®
- 7K Blackbaud Raiser's Edge NXT®
- 4K SKY Developer
- 258 ResearchPoint™
- 123 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 248 Member Lounge (Just for Fun)
- 40 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Closed) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 829 Community News
- 3.1K Jobs Board
- 57 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)





