当前位置:网站首页>MySQL judges the calculation result and divides it by 100
MySQL judges the calculation result and divides it by 100
2022-06-30 12:46:00 【Full stack programmer webmaster】
Pictured , When the company counts the actual transaction amount , Like I pay 1 Cents , But the amount in the database is 100, So when calculating the actual amount , I need to divide the amount by 100, Pictured
as follows sql Shown , Next to the field you want to divide by Divide You can divide the data you want
SELECT
IFNULL( sum( spu_amount_all ), 0 ) / 100
FROM
test_obp_data.data_user_order_goods
WHERE
pay_time BETWEEN '2021-04-29 00:00:00'
AND '2021-04-30 00:00:00'
AND is_refund = 0
AND shop_type != 3;Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/100681.html Link to the original text :https://javaforall.cn
边栏推荐
- How to solve cross domain problems
- MySQL判断执行条件为NULL时,返回0,出错问题解决 Incorrect parameter count in the call to native function ‘ISNULL‘,
- 电机控制Clarke(α/β)等幅值变换推导
- Double dqn notes
- Docker安装Mysql8和sqlyong连接报错2058的解决方法[随笔记录]
- Swagger2 automatically generates API documents
- The realization of QT the flipping effect of QQ weather forecast window
- 机器学习笔记 - 自相关和偏自相关简介
- SuperMap iclient3d for webgl loading TMS tiles
- [QNX Hypervisor 2.2用户手册]6.2.3 Guest与外部之间通信
猜你喜欢

MySQL composite query

Qt中的数据库使用

Joplin implements style changes

【驚了】迅雷下載速度竟然比不上虛擬機中的下載速度

Redis-緩存問題

【300+精选大厂面试题持续分享】大数据运维尖刀面试题专栏(二)

Sarsa notes
![[300+ continuous sharing of selected interview questions from large manufacturers] column on interview questions of big data operation and maintenance (II)](/img/cf/44b3983dd5d5f7b92d90d918215908.png)
[300+ continuous sharing of selected interview questions from large manufacturers] column on interview questions of big data operation and maintenance (II)

After the market value evaporated by 65billion yuan, the "mask king" made steady medical treatment and focused on condoms

Questionnaire star questionnaire packet capturing analysis
随机推荐
【OpenGL】OpenGL Examples
Redis cache problem
【驚了】迅雷下載速度竟然比不上虛擬機中的下載速度
解决numpy.core._exceptions.UFuncTypeError: ufunc ‘add‘ did not contain a loop with signature matchin问题
JMeter之性能测试流程及性能测试关注点
Charles打断点修改请求数据&响应数据
JMeter性能测试之相关术语及性能测试通过标准
Docker安装Mysql8和sqlyong连接报错2058的解决方法[随笔记录]
STM32 移植 RT-Thread 标准版的 FinSH 组件
Instructions for legend use in SuperMap iclient3d 11i for cesium 3D scene
rpm2rpm 打包步骤
pyqt5界面的布局与资源文件的载入
Introduction to new features of ES6
SuperMap iclient3d for webgl loading TMS tiles
【MySQL】MySQL的安装与配置
Terms related to JMeter performance test and performance test passing standards
Pharmacy management system
[one day learning awk] Fundamentals
Mysql中 begin..end使用遇到的坑
黑马笔记---常用日期API