JeffMachine
MIS
We are increasing our prices by 4% (price*1.04) and I need to write a query to show the sales dept. what the new prices would look like and I need a little help with the syntax to calculate the new rounded prices.
We would like to round these new prices based on the table below:
Price Round To
0-19.99 No Round
20-99.99 Round up to nearest .25
100-499.99 Round up to nearest .50
500-999.99 Round up to nearest 1.00
1000-9999.99 Round up to nearest 10.00
10000+ Round up to nearest 100.00
examples:
if price=10 then newprice=10.40 (10*1.04)
if price=25.50 then newprice=26.75 (25.5*1.04=26.52)
if price=752.25 then newprice=783.00 (752.25*1.04=782.34)
if price=34,093 then newprice=35,500 (34,093*1.04=35,456.72)
thanks
We would like to round these new prices based on the table below:
Price Round To
0-19.99 No Round
20-99.99 Round up to nearest .25
100-499.99 Round up to nearest .50
500-999.99 Round up to nearest 1.00
1000-9999.99 Round up to nearest 10.00
10000+ Round up to nearest 100.00
examples:
if price=10 then newprice=10.40 (10*1.04)
if price=25.50 then newprice=26.75 (25.5*1.04=26.52)
if price=752.25 then newprice=783.00 (752.25*1.04=782.34)
if price=34,093 then newprice=35,500 (34,093*1.04=35,456.72)
thanks