Hi All,
I have two coulmns column 1 and column 2, i need to get the records in first and second alphabatical order
1)Select 'column1' or 'column2 'based on which value populated comes first alphabetically
2)Select 'column1' or 'column2 'based on which value populated comes second alphabetically
3)Set column Basis to the concatenated value of 'column1' and column2 where the currency code that is alphabetically first is the first in the concatenated value [e.g. GBP/USD]
Could you please some one help me on this?
How can we get records in first and second alphabetically
Moderators: chulett, rschirm, roy
A bit confusing and I'd rather not make any assumptions... here is where an example would come in handy. Can you post samples of your input and then based on those input records show us what the desired output would be? And your source is what - flat file, database table?
I'd also be curious what, if anything, you've tried so far.
I'd also be curious what, if anything, you've tried so far.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Perhaps something like the following will do it.
Code: Select all
If Col1 > Col2 Then Col1 : "/" : Col2 Else Col2 : "/" : Col1
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.