Hi guys;
I need your assistance.
I am extracting some info from my database and I need difference between two fields of money values.
Lets call the fields as Field1,Field2,& Field3.
Look into parameterization with arithmetic operations.
Try this:
Select Field1 = CAST( @Field1 AS MONEY ), Field2 = CAST( @Field2 AS MONEY )
Thanks Samaru for your contribution.
I tried your hint you gave me but still did not give the results i expected, now field3 is rounding off to a whole figure instead of actual difference.
For example if field1 = 50.35 and field2=20.12, field3 should be 30.23 but its giving 30.