Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datatype possible ?
Message
From
18/01/2000 13:26:17
 
 
To
18/01/2000 08:12:51
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00319357
Message ID:
00319538
Views:
9
>Let's take it a step further,
>
>Suppose I have a select statement like:
>
>select (number*price) * iff(type = "BUY", 1, -1) as costs from TABLENAME
>
>
>It won't work with using:
>SELECT TRANSFORM(number*price, "999999.99") AS costs
>
>any other suggestions ?
>
>John

SELECT (number*price)*iif(type='BUY',1,-1)+000000.00 AS COSTS FROM tablename
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform