General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SQL Select returns integer value instead of a decimal value
I have a select command like
select ... iif( x > 0, round(y/x,2),0.0) as name ... from ..
into cursor z
browse
where x=111.0 y = 2. In the cursor columns name is 56 instead of 55.5. Doing it manually I get the correct result.
In addition if I use iif(x > 0,round(y/x,2),0) as name I get an single asterisk for name.
What am I missing???
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only