Author: Roy Ware
Subject: Summing on Mixed Case Literals
Posted: Tue Jan 03, 2017 10:18 pm (GMT 5.5)
I'm being held hostage by two database tables who refuse to compromise. One table has the City Name in Mixed Case letters: El Paso, for example. The second has the City Name in Uppercase letters: EL PASO.
The goal is to summarize the dollar amount field for each city, regardless of the case, with the mixed case being the desirable output, but showing the uppercase name in case a "matching" lowercase is not available.
Here's the data:
The desired output is:
Of course, nothing like this has been attempted here before, so there aren't any examples and the SyncSort manual isn't much help. Any suggestions?
Subject: Summing on Mixed Case Literals
Posted: Tue Jan 03, 2017 10:18 pm (GMT 5.5)
I'm being held hostage by two database tables who refuse to compromise. One table has the City Name in Mixed Case letters: El Paso, for example. The second has the City Name in Uppercase letters: EL PASO.
The goal is to summarize the dollar amount field for each city, regardless of the case, with the mixed case being the desirable output, but showing the uppercase name in case a "matching" lowercase is not available.
Here's the data:
Code: |
Mattoon 277.86 MATTOON 179.02 Charleston 801.13 POPLAR GROVE 354.03 |
The desired output is:
Code: |
Mattoon 456.88 Charleston 801.13 POPLAR GROVE 354.03 |
Of course, nothing like this has been attempted here before, so there aren't any examples and the SyncSort manual isn't much help. Any suggestions?