Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Under the gun on a deadline - SQL numeric format problem
Message
From
25/05/2006 16:49:28
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01125006
Message ID:
01125070
Views:
20
>>This field is part of an SQL that will be saved via SDF to a text file. The problem I'm having is that it is always 16 in length, regardless of what I do to it in the SQL. It must be 12 in length and 2 decimal places. Any help greatly appreciated. Thanks!
>>
>>
>>SUM(VAL(STR(new.ee_bal,12,2))) AS ee_bal,;
>>
>
>I really wanted to write "Pull the trigger" <g>
>
>
>Anyway, for VFP 9 use CAST, for VFP8 - use
>sum(myVal + 000000000000.00)

Needed 000000000.00, but it didn't work regardless. Still get 16 in length in the result.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform