Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datatype ???
Message
From
26/01/2000 06:01:18
Walter Meester
HoogkarspelNetherlands
 
 
To
26/01/2000 05:04:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00322685
Message ID:
00322696
Views:
34
John,

>here's the situation:
>
>I do have a select statement:
>
>SELECT t.*, (t.number*t.price) * iif(t.transs = ""CS"" OR t.transs = ""DV"" OR t.transs = ""L "" OR t.transs = ""R "" OR t.transs = ""RC"" OR t.transs = ""RD"" OR t.transs = ""V "" OR t.transs = ""ST"" OR t.transs = ""OP"" , 1, -1) as bruto from trans t
>
>It gives me the following result for bruto:
>
>912414,12124
>12421
>111, 12425235
>etc.

>Any other suggestions ?

How about:
  SELECT *, ROUND(number*price * iif(INLIST(transs,"CS","DV","L ","R ","RC","RD","V ","ST","OP" , 1, -1)),2) as bruto 
   FROM trans
Walter,
Previous
Reply
Map
View

Click here to load this message in the networking platform