I dont get it :-) Get Discounted price by porcentage
-
Hi thanks for looking I have a weird situation here im doing a case on a column, i need to get the final price Price = 15.0000 Discount = 10
when '%' then dbo.vwProducts.Price * ((100 - dbo.Promos.Discount) / 100)
Shouldnt this give a result of 13.5?? (15 * ((100-10)/100)) It gives .0000 If i change the 100 for a 10 it works!! It gives a result of 135.0000 (15 * ((100-10)/10)) = 135.0000 Whats happening??Alexei Rodriguez
-
Hi thanks for looking I have a weird situation here im doing a case on a column, i need to get the final price Price = 15.0000 Discount = 10
when '%' then dbo.vwProducts.Price * ((100 - dbo.Promos.Discount) / 100)
Shouldnt this give a result of 13.5?? (15 * ((100-10)/100)) It gives .0000 If i change the 100 for a 10 it works!! It gives a result of 135.0000 (15 * ((100-10)/10)) = 135.0000 Whats happening??Alexei Rodriguez
-
Hi thanks for looking I have a weird situation here im doing a case on a column, i need to get the final price Price = 15.0000 Discount = 10
when '%' then dbo.vwProducts.Price * ((100 - dbo.Promos.Discount) / 100)
Shouldnt this give a result of 13.5?? (15 * ((100-10)/100)) It gives .0000 If i change the 100 for a 10 it works!! It gives a result of 135.0000 (15 * ((100-10)/10)) = 135.0000 Whats happening??Alexei Rodriguez
-
Hi thanks for looking I have a weird situation here im doing a case on a column, i need to get the final price Price = 15.0000 Discount = 10
when '%' then dbo.vwProducts.Price * ((100 - dbo.Promos.Discount) / 100)
Shouldnt this give a result of 13.5?? (15 * ((100-10)/100)) It gives .0000 If i change the 100 for a 10 it works!! It gives a result of 135.0000 (15 * ((100-10)/10)) = 135.0000 Whats happening??Alexei Rodriguez