Rounding numbers
Sometimes, you only care about the whole dollar amount and want to ignore the decimal values of the cost. In this exercise, you will round the cost to the nearest dollar.
Deze oefening maakt deel uit van de cursus
Intermediate SQL Server
Oefeninstructies
Write a SQL query to round the values in the Cost column to the nearest whole number.
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
-- Round Cost to the nearest dollar
SELECT Cost,
___ AS RoundedCost
FROM Shipments