Weather Observation Station 15

  • + 0 comments

    This same solution (which is what I also came up with) fails on MSSQL Server and DB2 but works on Oracle and MySQL. The trick is to ensure you cast the type of the output to only output 4 decimals (and not pad with zeros on the end, which is what MSSQL and DB2). You can write the above solution to work on all 4 platforms by casting to e.g. decimal(16,4) after rounding.