1. 学习
  2. /
  3. 课程
  4. /
  5. Functions for Manipulating Data in SQL Server

Connected

练习

Rounding numbers

Sometimes in your database development, you may need to round the results of a calculation. There are three functions you can use for this:

  • CEILING(expression): rounds-up to the nearest integer value
  • FLOOR(expression): rounds-down to the nearest integer value
  • ROUND(expression, length): rounds the expression to the specified length.

In this exercise, you will get familiar with the rounding functions, by applying them on a query based on the ratings table.

说明 1 / 共 4 个

undefined XP
    1
    2
    3
    4
  • Round up the ratings to the nearest integer value.