Keep in mind, I just started a new job and using Crystal literally two weeks ago. So if my question is really elementary, that's why.
With that in mind, here is my question:
How do you limit your result to only one occurence of the primary key (Account Number)?
I'm working with two tables where the primary key in one is not the primary key in the other. Consequently, it's giving me multiple records with the same "account number". I just want to get one occurence of a record whenever the arguement is true.
I hope that makes sense. Otherwise here is a little bit of a visual:
table1
Acct Number -- Name
1212 --- Billy
1313 --- John
1414 --- Mary
Table2
Account Number --- Flag Code
1212 --- 59
1212 --- 89
1313 --- 99
1313 --- 62
1414 --- 89
1414 --- 99
Let's say I ask it to give me from Table2 all Account Numbers with "59" or "89" flag code
It gives me
1212
1212
1414
But I only want it to give me
1212
1414
Thanks in advance
ibe
With that in mind, here is my question:
How do you limit your result to only one occurence of the primary key (Account Number)?
I'm working with two tables where the primary key in one is not the primary key in the other. Consequently, it's giving me multiple records with the same "account number". I just want to get one occurence of a record whenever the arguement is true.
I hope that makes sense. Otherwise here is a little bit of a visual:
table1
Acct Number -- Name
1212 --- Billy
1313 --- John
1414 --- Mary
Table2
Account Number --- Flag Code
1212 --- 59
1212 --- 89
1313 --- 99
1313 --- 62
1414 --- 89
1414 --- 99
Let's say I ask it to give me from Table2 all Account Numbers with "59" or "89" flag code
It gives me
1212
1212
1414
But I only want it to give me
1212
1414
Thanks in advance
ibe