I have a database with data such as:
Ref Flag Data
500 0 Data1
500 1 Data1
500 0 Data1
501 0 Data2
501 0 Data2
501 0 Data2
502 1 Data3
502 0 Data3
503 0 Data4
503 0 Data4
I am using Crystal Reports 11 to produce a summary list of certain aspects of this data. I want a list that includes one line for every record but excludes that record if the flag for any line with that record is 1. So only records where all of the flags are 0. With the above the result should be:
Ref Flag Data
501 0 Data2
503 0 Data4
If you understand my explanation then any help would be appreciated.
Thank you
Ref Flag Data
500 0 Data1
500 1 Data1
500 0 Data1
501 0 Data2
501 0 Data2
501 0 Data2
502 1 Data3
502 0 Data3
503 0 Data4
503 0 Data4
I am using Crystal Reports 11 to produce a summary list of certain aspects of this data. I want a list that includes one line for every record but excludes that record if the flag for any line with that record is 1. So only records where all of the flags are 0. With the above the result should be:
Ref Flag Data
501 0 Data2
503 0 Data4
If you understand my explanation then any help would be appreciated.
Thank you