Hello all, well since you all were soo quick with helping me last time and I'm rather stuck right now, I'm hoping someone may have a solution to what I'm trying to do.
The fields and corrosponding data looks like this in the query (query name is bucket_results):
Account Number
Transaction Type Code
Bal unapplied code 1
Bal Unapplied code 2
Bal Unapplied code 3
Bal Unapplied code 4
Bal Unapplied code 5
field_result
What I'm trying to do is this. There is a code in the Transaction Type Code. There are about 18 different codes. Each Account may or may not have all the codes, but may have a few. The codes look like below, and if there is a code for that account, it will be represented by the 3rd character. See below:
UF* = *(in the bal Unapplied code fields)
UF0 = 0(in the bal Unapplied code fields)
UF4 = 4(in the bal Unapplied code fields)
UF5 = 5(in the bal Unapplied code fields)
And so forth
the query I'm trying to build, will look in each of the "Bal unapplied code" fields (1-5). I need the query to check to see if each code for each record is there (for instance, account 0000556677 with a code of UFF to see if there is a F in each of those fields). If there isn't a "F" in any of the 5 Bal unapplied fields, I need to return the results in the "field_result" to something like "No Code"
I hope I'm being clear about what I'm talking about. I know it's going to be SQL driven, I'm just not sure how to do this. Can someone provide me some kind of a solution? Thank you for taking the time in advance!
The fields and corrosponding data looks like this in the query (query name is bucket_results):
Account Number
Transaction Type Code
Bal unapplied code 1
Bal Unapplied code 2
Bal Unapplied code 3
Bal Unapplied code 4
Bal Unapplied code 5
field_result
What I'm trying to do is this. There is a code in the Transaction Type Code. There are about 18 different codes. Each Account may or may not have all the codes, but may have a few. The codes look like below, and if there is a code for that account, it will be represented by the 3rd character. See below:
UF* = *(in the bal Unapplied code fields)
UF0 = 0(in the bal Unapplied code fields)
UF4 = 4(in the bal Unapplied code fields)
UF5 = 5(in the bal Unapplied code fields)
And so forth
the query I'm trying to build, will look in each of the "Bal unapplied code" fields (1-5). I need the query to check to see if each code for each record is there (for instance, account 0000556677 with a code of UFF to see if there is a F in each of those fields). If there isn't a "F" in any of the 5 Bal unapplied fields, I need to return the results in the "field_result" to something like "No Code"
I hope I'm being clear about what I'm talking about. I know it's going to be SQL driven, I'm just not sure how to do this. Can someone provide me some kind of a solution? Thank you for taking the time in advance!