Quote:
Originally posted by Nicjordan
Sorry - I did not make myself clear - I dont want to change the data stored as it would effect a huge pre existing database - what I want to do is FORMAT the data I output in a SQL query - we dont have 4GL so I am limited to SQL.
I am having trouble as the data is a floating point and sometimes there is only 1 or even 0 decimal places...but I want to show 2 - so I need the equivalent of rpad with 0 of r the decimal element.
Nic
|
Hi Nic,
Excuse me, the environment variable DBFORMAT and DBMONEY, they permit you formatear the exit of the data. i understand that you want this.
ie
Value Format String DBFORMAT Setting Displayed Result
1234.56 $$#,###.## $:,:.: $1,234.56
1234.56 $$#,###.## :.:,

M 1.234,56
1234.56 #,###.##@@ $:,:.: 1,234.56
1234.56 #,###.##@@ :.:,

M 1.234,56DM
Gustavo.