Welcome to Forums Sign in | Join | Help | Forums
in Search


My query has duplicate rows, how to select distinct info? Thanks

Last post 09-23-2008 12:32 AM by JoAnn Strommen. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 09-22-2008 5:05 PM

    My query has duplicate rows, how to select distinct info? Thanks

     

  • 09-22-2008 5:09 PM In reply to

    • Jason Want
    • Top 100 Contributor
    • User Since: 2006
    • Posts 85
    • Organization: Audubon Nature Institute
    • Products:  The Raiser's Edge

    Re: My query has duplicate rows, how to select distinct info? Thanks

    Hi Duncan,

    What information are looking for?  What do you want to do with it: view it, export it, create a mailing or report?  What query type are you using?

    jwant

    --
    Jason Want
    Database Coordinator, Member Services
    Audubon Nature Institute
    Filed under:
  • 09-22-2008 5:51 PM In reply to

    Re: My query has duplicate rows, how to select distinct info? Thanks

    Type: Constituent

    Finding donors whose last gift was within last 2month. the result shows some rows are duplicate- exactly same. I can get rid of duplicates in Access, SQL Server or Oracle but how to do in RE? Thanks.

  • 09-22-2008 6:11 PM In reply to

    • Jason Want
    • Top 100 Contributor
    • User Since: 2006
    • Posts 85
    • Organization: Audubon Nature Institute
    • Products:  The Raiser's Edge

    Re: My query has duplicate rows, how to select distinct info? Thanks

    Duncan,

    Which fields are you including on the output tab of your query?  Try removing all of the fields except constituent ID from the output tab.  What do you want to do once you find these donors?

    jwant

    --
    Jason Want
    Database Coordinator, Member Services
    Audubon Nature Institute
  • 09-23-2008 12:32 AM In reply to

    • JoAnn Strommen
    • Top 10 Contributor
    • User Since: 2006
    • Posts 1,260
    • Organization: Rapid City YMCA
    • Products:  The Raiser's Edge

    Re: My query has duplicate rows, how to select distinct info? Thanks

    Sometimes it's easy to figure out why there are duplicate rows (looking at gifts and donor has more than one or output field has potential for more than one entry - ex: phone, attribute, code) and other times it's a challenge.  As Jason suggested, removing output fields may resolve issue. Sometimes check box for "Suppress Duplicate Rows" feature under Tools >> Query Options >> Record processing helps.

    But as many trainers/instructors stress:  "Query is not a report module".    It may be easiest to save your query and then go to export and create an export based on your query.  Each constitutent will only be listed once in the export.  You will need to select whatever fields you wish to export.  Query only identifies which records to export not which fields.

    Good luck.

    JoAnn Strommen
    YMCA of Rapid City
    Rapid City, SD
Page 1 of 1 (5 items)