当前位置:网站首页>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
边栏推荐
- Visual studio configures QT and implements project packaging through NSIS
- Commands for redis basic operations
- 视频按每100帧存一个文件夹,处理完再图片转视频
- The realization of QT the flipping effect of QQ weather forecast window
- STM32 移植 RT-Thread 标准版的 FinSH 组件
- Tronapi-波场接口-PHP版本--附接口文档-基于ThinkPHP5封装-源码无加密-可二开-作者详细指导-2022年6月28日11:49:56
- Qt读写Excel--QXlsx工作表显示/隐藏状态设置4
- Shell基础入门
- [300+ continuous sharing of selected interview questions from large manufacturers] column on interview questions of big data operation and maintenance (II)
- Google refutes rumors and gives up tensorflow. It's still alive!
猜你喜欢
数据仓库建设之确定主题域
Redis installation on Linux system
Linux系统Redis的安装
【一天学awk】运算符
[one day learning awk] Fundamentals
[yitianxue awk] regular matching
【一天学awk】正则匹配
[MySQL] MySQL installation and configuration
7 lightweight and easy-to-use tools to relieve pressure and improve efficiency for developers, and help enterprises' agile cloud launch | wonderful review of techo day
FlinkSQL自定义UDTF使用的四种方式
随机推荐
Idea has a new artifact, a set of code to adapt to multiple terminals!
【一天学awk】运算符
Sqlserver query code is 936 simplified Chinese GBK. Should I write 936 or GBK?
第十三章 信号(三)- 示例演示
FlinkSQL自定义UDTF使用的四种方式
How to solve cross domain problems
[QNX Hypervisor 2.2用户手册]6.2.3 Guest与外部之间通信
基于ThinkPHP5封装-tronapi-波场接口-源码无加密-可二开--附接口文档-作者详细指导-2022年6月30日08:45:27
Docker安装Mysql8和sqlyong连接报错2058的解决方法[随笔记录]
Introduction to new features of ES6
黑马笔记---List系列集合与泛型
Redis的配置文件及新数据类型
Substrate 源码追新导读: 质押额度大幅度削减, RocksDB可以完全被Disable
【MySQL】MySQL的安装与配置
21. Notes on WPF binding
两批次纯牛奶不合格?麦趣尔回应:正对产品大批量排查抽检
江西财经大学智慧江财登录分析
Videos are stored in a folder every 100 frames, and pictures are transferred to videos after processing
【OpenGL】OpenGL Examples
Lichuang EDA learning notes 10 common connector component identification and passive buzzer driving circuit