on 10-23-2015 12:56 PM
Hello All,
after looking at some advice on this page on how to convert, i've came up with the following:
SELECT T0.[ItemCode], ((CAST(T0.[U_Attribute1] AS decimal(18,6))/1000)*(CAST(T0.[U_Attribute2] AS decimal(18,6))/1000)*(CAST(T0.[U_Attribute3] AS decimal(18,6))/1000)) as [Attribute 5] FROM OITM T0
can anyone see where i've gone wrong here? because the query executes fine, it just doesn't bring any data through.
cheers,
Jamie
Hi,
Try this :
SELECT T0.[ItemCode],CAST(T0.[U_Attribute1] AS decimal(18,6)) * CAST(T0.[U_Attribute2] AS decimal(18,6)) * CAST(T0.[U_Attribute3] AS decimal(18,6)) FROM OITM T0
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Try the below one
SELECT T0.[ItemCode],
(((CAST(T0.[U_Attribute1] AS decimal(18,6)))*1.0/1000)*((CAST(T0.[U_Attribute2] AS decimal(18,6)))*1.0/1000)*
((CAST(T0.[U_Attribute3] AS decimal(18,6)))*1.0/1000)) as [Attribute 5] FROM OITM T0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.