Hi,
I have a query where I am subtracting two numbers, and the result is always rounded, but I need it not to do that.
The two data fields are defined in the database as numeric(17).
My query looks like this:
select tmccomcred, baamount, case when tmcomcred<>0 then baamount - tmcomcred else 0.00 end as comm_taken from table
I've tried wrapping all my values in cast(colname as numeric(9,2)) to no avail.
Any suggestions?
Thanks
-Rob
I have a query where I am subtracting two numbers, and the result is always rounded, but I need it not to do that.
The two data fields are defined in the database as numeric(17).
My query looks like this:
select tmccomcred, baamount, case when tmcomcred<>0 then baamount - tmcomcred else 0.00 end as comm_taken from table
I've tried wrapping all my values in cast(colname as numeric(9,2)) to no avail.
Any suggestions?
Thanks
-Rob