I'm using a query feature in our company's application to communicate with Informix 3.8. I need to change the format of a resulting account number list in order to import this result to another program and link data based on that number.
This is an example of my statement:
Select
detail.strap
From
detail
Where
detail.map_id = 'Q22'
Order by
detail.strap
The result returns a list of acct numbers formatted as:
R-abc-defg-hijk.l
I need the resulting list to display the 'raw' acct # as:
abcdefghijklR
I have used the following formula in Crystal Reports to achieve this result, but don't know how to place it in this query to return the desired result or if there is another way to express this.
Mid ({detail.strap},3 ,3)+ Mid ({detail.strap}, 7, 4)+ Mid ({detail.strap}, 12, 4)+Right ({detail.strap}, 1)+ Left ({detail.strap},1)
Thanks for any help you can give me.
This is an example of my statement:
Select
detail.strap
From
detail
Where
detail.map_id = 'Q22'
Order by
detail.strap
The result returns a list of acct numbers formatted as:
R-abc-defg-hijk.l
I need the resulting list to display the 'raw' acct # as:
abcdefghijklR
I have used the following formula in Crystal Reports to achieve this result, but don't know how to place it in this query to return the desired result or if there is another way to express this.
Mid ({detail.strap},3 ,3)+ Mid ({detail.strap}, 7, 4)+ Mid ({detail.strap}, 12, 4)+Right ({detail.strap}, 1)+ Left ({detail.strap},1)
Thanks for any help you can give me.