I have a list of values in SQL Server which need some customized rounding. I have tried with inbuilt SQL Server functions but those functions didn't work.
I want to round a decimal value to nearest 5 value
For example
- 1.02,1.01,1.03,1.04,1.05 -- should be rounded to 1.05
- 1.06,1.07,1.08,1.09,1.10 -- should be rounded to 1.10
- 1.11,1.12,1.13,1.14,1.15 -- should be rounded to 1.15
- 1.16,1.17,1.18,1.19,1.20 -- should be rounded to 1.20
Could you please suggest a working solution for this scenario in SQL Server?
Thanks in advance
Raju