Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Too many Results in a report

Discussion in 'Information Technology' started by Teresa, Jul 28, 2006.

  1. Teresa

    Expand Collapse

    I built a database, to hold meetings. There is a main meeting table
    with meeting details, and a meeting can have multiple representatives
    at it, and multiple contacts for the meetings, and multiple issues
    discussed at each meeting. so I have a representative table joined with
    a one to many junction table which has a many to one relationship to
    the meeting table, and the junction table contains a meeting id,
    representative id , and meetingrepresentative id (PK), the other two
    table, issues and contacts, are joined in the same way to the meeting
    table through junction tables.

    My problem is that if someone wants a report based on say, all the
    meetings that representative "A" attends. Say at one of the meetings:
    there were three issues, and two contacts, and two other
    representatives at that meeting, The query the report is based on (I'll
    include SQL at end) returns 18 rows for that one meeting. I understand
    why it does that: because each row has one unique field to set it apart
    from al lthe other similar rows.

    The problem I am having is the report end of it. I have tried using
    the grouping and sorting in every way I can think of in the report
    wized, (and afterwards in the report design view properties) to make
    the data look nice and to get rid of the redundant parts of the row
    returns. I have also tried the "hide duplicates" in the properties,
    and every combination of the above measures that I can imagine. Am I
    missing something, or is there another way to stop it from repeating
    each rep, with each issue, etc?

    Here is a sample of the sql for the search by representative query:

    SELECT Meeting.MeetingID, Meeting.Date, Meeting.MeetingCommunity,
    Representatives.RepresentativeName, Contact.ContactName,
    KeyIssues.IssuesName, Meeting.AreasofDiscussion, Meeting.Formal,
    FROM Representatives INNER JOIN (((Meeting INNER JOIN (Contact INNER
    JOIN MeetingContact ON Contact.ContactID = MeetingContact.ContactID) ON
    Meeting.MeetingID = MeetingContact.MeetingID) INNER JOIN (KeyIssues
    INNER JOIN MeetingIssues ON KeyIssues.IssueID = MeetingIssues.IssuesID)
    ON Meeting.MeetingID = MeetingIssues.MeetingID) INNER JOIN
    MeetingRepresentative ON Meeting.MeetingID =
    MeetingRepresentative.MeetingID) ON Representatives.RepresentativeID =
    WHERE (((Representatives.RepresentativeName)=[Enter Representative
    Name] Or (Representatives.RepresentativeName)=[Second Rep-Hit Enter to

    Any help is appreciated.
  2. Loading...

    Similar Threads Forum Date
    The Problem with Taking Too Many Vitamins Health & Nutrition Oct 18, 2013
    Too Many Hukamnamas! Questions and Answers Jun 13, 2012
    One Drink Too Many? A Discussion of Alcohol and Sikhi Sikh Sikhi Sikhism Jul 6, 2011
    Christianity After Blast in Egypt, Many Deride Their Church as Too Timid Interfaith Dialogues Jan 9, 2011
    Legal The Other Half: Too Many Lacunae Breaking News Dec 27, 2010

Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     

Share This Page