× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



OTTOMH... untested:

cast ( decimal(digits(substr(srcdta, ss, ee)), 13) / 10000000) as decimal(13,7) )

where ss and ee are the start and end for the substring.

But, as always, if you need to move a decimal point to the left, you divide.


donna lester wrote:
I have a flat file as below :
SRCSEQ SRCDAT SRCDTA 54.00 0 USDAUD 0000009414499 05/13/08 55.00 0 USDEUR 0000015482499 05/13/08 56.00 0 USDGBP 0000019474000 05/13/08 ------------------------------------------------------------------------------------
I want to extract from this file
USDGBP conversion rate 1.9474000 on date 05/13/08.
Can some one please help me with an SQL or any alternate solution. I donot have any ideas how can I get period(.) after first digit example : 1.9474000 as flat file comes as 19474000...
Thank you for all the help!


Thanks,

Donna.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.