![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hey all, For the new year we're updating our price lists to reflect an increase of 1.5%, but... we need to round the prices to the nearest 0.05. Is there a way to do this in SQL*Plus? Basically I want to emulate the MROUND function in Excel (eg. MROUND((cell*1.015), 0.05). Thoughts? |
#3
| |||
| |||
|
|
select round( price*1.015*20) /20 from your_table; "dbarchitech" <noble_kid (AT) mac (DOT) com> wrote in message news:9d3dc423.0401121131.5266739f (AT) posting (DOT) google.com... Hey all, For the new year we're updating our price lists to reflect an increase of 1.5%, but... we need to round the prices to the nearest 0.05. Is there a way to do this in SQL*Plus? Basically I want to emulate the MROUND function in Excel (eg. MROUND((cell*1.015), 0.05). Thoughts? |
#4
| |||
| |||
|
|
Sean Chang wrote: select round( price*1.015*20) /20 from your_table; "dbarchitech" <noble_kid (AT) mac (DOT) com> wrote in message news:9d3dc423.0401121131.5266739f (AT) posting (DOT) google.com... Hey all, For the new year we're updating our price lists to reflect an increase of 1.5%, but... we need to round the prices to the nearest 0.05. Is there a way to do this in SQL*Plus? Basically I want to emulate the MROUND function in Excel (eg. MROUND((cell*1.015), 0.05). Thoughts? Why not just ... round(price*1.015, 2) |
![]() |
| Thread Tools | |
| Display Modes | |
| |