OK maybe I have been staring at the issue for too long.. Because its HAS to be SIMPLE but I’m just not getting it...
The weird this here is when I perform the calculation within a stored procedure or query analyzer it returns a different value verses performing the same calculation in excel or the calculator.
Ok
I have two fields
COL-A = Sales
COL-B = Percent
-----------------------------
Col-A = 3000000
Col-B = 54.50
-----------------------------
Col-A / Col-B = Percent
Result when performing in excel or calculator
54.50 / 3000000 = 1.8166666666666666666666666666667
Here is the simple SQL
Result when performing in SQL SP or Query Analyzer.
54.50 / 3000000 = .0000181666
I understand I can multiple it by 1000 to get the same result. But I really don't want to do this every time.
Any thoughts
Thanks
talenx
The weird this here is when I perform the calculation within a stored procedure or query analyzer it returns a different value verses performing the same calculation in excel or the calculator.
Ok
I have two fields
COL-A = Sales
COL-B = Percent
-----------------------------
Col-A = 3000000
Col-B = 54.50
-----------------------------
Col-A / Col-B = Percent
Result when performing in excel or calculator
54.50 / 3000000 = 1.8166666666666666666666666666667
Here is the simple SQL
Code:
Select 54.50 / 3000000
--------------
.0000181666
(1 row(s) affected)
Result when performing in SQL SP or Query Analyzer.
54.50 / 3000000 = .0000181666
I understand I can multiple it by 1000 to get the same result. But I really don't want to do this every time.
Any thoughts
Thanks
talenx