I am running Crystal V10 using an Oracle database.
What I am trying to do is include all detail records in a group based on the value of a field that may be present in only one of the detail records. Think of this as the opposite of suppression. I found many threads regarding how to suppress records through Group Selection, but could not find anything relating to the opposite.
Below is a table of sample data representing the situation. I have linked an Incident table to a Persons Involved table built on a one-to-many relationship using a left outer join.
Incident # Name Involvement Offense Code
1 John Suspect
1 Sara Suspect
1 Mark Suspect 120
1 Dirk Witness
2 Tim Suspect
2 Ben Victim 130
3 Jerry Suspect
3 Sandy Victim
I would like to select all detail records in an incident based on the presence of an offense code in any one of the records. In the scenario above, a report, for example, should list all information found under incidents 1 and 2. Incident 3 and its associated detail records, however, should not be included at all as there is no offense code present for any of the incident's detail records.
I have tried several combinations of record selection and group selection to no avail. The problem essentially, I believe, is that I need to retrieve detail records after they have been by-passed based on them not having an offense code. Any help would be appreciated.
Thanks, Rooski
What I am trying to do is include all detail records in a group based on the value of a field that may be present in only one of the detail records. Think of this as the opposite of suppression. I found many threads regarding how to suppress records through Group Selection, but could not find anything relating to the opposite.
Below is a table of sample data representing the situation. I have linked an Incident table to a Persons Involved table built on a one-to-many relationship using a left outer join.
Incident # Name Involvement Offense Code
1 John Suspect
1 Sara Suspect
1 Mark Suspect 120
1 Dirk Witness
2 Tim Suspect
2 Ben Victim 130
3 Jerry Suspect
3 Sandy Victim
I would like to select all detail records in an incident based on the presence of an offense code in any one of the records. In the scenario above, a report, for example, should list all information found under incidents 1 and 2. Incident 3 and its associated detail records, however, should not be included at all as there is no offense code present for any of the incident's detail records.
I have tried several combinations of record selection and group selection to no avail. The problem essentially, I believe, is that I need to retrieve detail records after they have been by-passed based on them not having an offense code. Any help would be appreciated.
Thanks, Rooski