ComputerNurse
MIS
I am attempting to round up to the nearest quarter on 1005680VW_SC_PASSPORT.DIRECT_DURATION} the Duration is given in minutes. I divided these minutes by 60 to get total hours. I need to round up to the nearest quarter. I have a value of (95/60) = 1.58, the business side wants it rounded to the next highest quarter (never rounded down). the 1.58 should be 1.75.
Should I write a case statement with the ranges in order to accomplish this? or is there a better way?
Select {1005680VW_SC_PASSPORT.SERVICE_CODE}
CASE "B001":
17.5
CASE "B002":
35
CASE "C001":
10
CASE "C002":
round(({1005680VW_SC_PASSPORT.DIRECT_DURATION}/60),1)
CASE "C003":
round(({1005680VW_SC_PASSPORT.DIRECT_DURATION}/60),1)
CASE "P002":
1
CASE "P003":
{1005680VW_SC_PASSPORT.DIRECT_DURATION}/15
CASE "P005":
1
CASE "P006":
1
CASE "P008":
{1005680VW_SC_PASSPORT.DIRECT_DURATION}/15
CASE "P009":
1
Should I write a case statement with the ranges in order to accomplish this? or is there a better way?
Select {1005680VW_SC_PASSPORT.SERVICE_CODE}
CASE "B001":
17.5
CASE "B002":
35
CASE "C001":
10
CASE "C002":
round(({1005680VW_SC_PASSPORT.DIRECT_DURATION}/60),1)
CASE "C003":
round(({1005680VW_SC_PASSPORT.DIRECT_DURATION}/60),1)
CASE "P002":
1
CASE "P003":
{1005680VW_SC_PASSPORT.DIRECT_DURATION}/15
CASE "P005":
1
CASE "P006":
1
CASE "P008":
{1005680VW_SC_PASSPORT.DIRECT_DURATION}/15
CASE "P009":
1