/*and v.dybzspsxbm not like '%0020%'*/ select IFNULL(max(dv.TYSPYS1) ,0) zc1, IFNULL(max(dv.TYSPYS2) ,0) zc2, IFNULL(max(dv.TYSPYS3) ,0) zc3, IFNULL(max(dv.TYSPYS4) ,0) zc4, IFNULL(max(dv.TYSPYS5) ,0) zc5, IFNULL(ceil(sum(if(((bjs1 >= 1) and v.TYSPYS1>0), v.TYSPYS1, 0))/ sum(if(((bjs1 >= 1) and v.TYSPYS1>0), 1, 0))) ,0) ys1, IFNULL(ceil(sum(if(((bjs2 >= 1) and v.TYSPYS2>0), v.TYSPYS2, 0))/ sum(if(((bjs2 >= 1) and v.TYSPYS2>0), 1, 0))) ,0) ys2, IFNULL(ceil(sum(if(((bjs3 >= 1) and v.TYSPYS3>0), v.TYSPYS3, 0))/ sum(if(((bjs3 >= 1) and v.TYSPYS3>0), 1, 0))) ,0) ys3, IFNULL(ceil(sum(if(((bjs4 >= 1) and v.TYSPYS4>0), v.TYSPYS4, 0))/ sum(if(((bjs4 >= 1) and v.TYSPYS4>0), 1, 0))) ,0) ys4, IFNULL(ceil(sum(if((bjs5 > 1 and v.TYSPYS5>0), v.TYSPYS5, 0))/ sum(if((bjs5 > 1 and v.TYSPYS5>0), 1, 0))) ,0) ys5, IFNULL(ceil(sum(if(((bjs1 帮我翻译一下
时间: 2023-12-31 18:05:43 浏览: 33
这段代码是一个SQL查询语句,用于计算一些指标。以下是代码的翻译:
```
/*and v.dybzspsxbm not like '%0020%'*/ select
IFNULL(max(dv.TYSPYS1) ,0) zc1,
IFNULL(max(dv.TYSPYS2) ,0) zc2,
IFNULL(max(dv.TYSPYS3) ,0) zc3,
IFNULL(max(dv.TYSPYS4) ,0) zc4,
IFNULL(max(dv.TYSPYS5) ,0) zc5,
IFNULL(ceil(sum(if(((bjs1 >= 1) and v.TYSPYS1>0), v.TYSPYS1, 0))/ sum(if(((bjs1 >= 1) and v.TYSPYS1>0), 1, 0))) ,0) ys1,
IFNULL(ceil(sum(if(((bjs2 >= 1) and v.TYSPYS2>0), v.TYSPYS2, 0))/ sum(if(((bjs2 >= 1) and v.TYSPYS2>0), 1, 0))) ,0) ys2,
IFNULL(ceil(sum(if(((bjs3 >= 1) and v.TYSPYS3>0), v.TYSPYS3, 0))/ sum(if(((bjs3 >= 1) and v.TYSPYS3>0), 1, 0))) ,0) ys3,
IFNULL(ceil(sum(if(((bjs4 >= 1) and v.TYSPYS4>0), v.TYSPYS4, 0))/ sum(if(((bjs4 >= 1) and v.TYSPYS4>0), 1, 0))) ,0) ys4,
IFNULL(ceil(sum(if((bjs5 > 1 and v.TYSPYS5>0), v.TYSPYS5, 0))/ sum(if((bjs5 > 1 and v.TYSPYS5>0), 1, 0))) ,0) ys5,
IFNULL(ceil(sum(if(((bjs1
```
该代码是一段SQL查询语句,用于计算一些指标。具体的功能和数据表结构需要进一步的信息。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![patch](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)