Focal Point
[closed]SQL Fraction values

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2157018626

December 03, 2012, 03:54 PM
Kamesh
[closed]SQL Fraction values
Hi,

I have a table stored in oracle which has the value in fraction for one column. When I try to sum that value in FOCUS then it's not summing those fraction values.

Ex:

Table A --> column A - value might be 0.45

Webfocus treats that value as 0.

Is there a way to get this fraction value?

my code look like

SQL

SELECT COLUMNA FROM TABLE;

TABLE FILE SQLOUT
SUM COLUMNA
END
-EXIT

This message has been edited. Last edited by: Kamesh,


WFConsultant

WF 8105M on Win7/Tomcat
December 03, 2012, 04:06 PM
Waz
What is the format of the column ?

and if you add ?FF after the TABLE FILE SQLOUT, what is the format that WebFOCUS thinks its getting ?

SQL

SELECT COLUMNA FROM TABLE;

TABLE FILE SQLOUT
?FF
SUM COLUMNA
END
-EXIT



Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

December 07, 2012, 09:46 AM
Kamesh
Once we fix the master file to hold that format as P17.3, it worked.

Thanks for your help.


WFConsultant

WF 8105M on Win7/Tomcat