sql - SQL how to round up to tenth (no decimals)
问题描述
In Excel I use the ceiling function to round up to the tenth (or more) of a number, like for example:
38.4 =CEILING(A1,10), becomes 40
21 would become 30 etcetc..
In SQl you have a ceiling function but this only seems to round up decimals. Can I use this function or is there are different function I can use?
Thnx in advance!
解决方案
使用天花板功能如下
CEILING(38.4/10)*10
推荐阅读
- networking - Point-2-Point 网络中的中继器
- javascript - querySelector("selector") vs querySelector("selector").value
- django - DRF 不可写嵌套序列化器相关字段
- python - 删除日志文件后python记录丢失消息
- laravel - JSON/整数数组的 Laravel 验证不起作用
- questdb - 估计 QuestDB 的磁盘空间要求
- c# - 使用 HealthChecks 检查我的 Quartz 是否健康
- kotlin - Kotlin kmm 创建类型为:CValuesRef 的变量
- aggregate-functions - Qlikview 聚合
- sql - SQL中不同表访问两个不同字段时如何添加分隔符